topaz / perl-magictags

Embed HTML and PHP in your Perl scripts!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This module lets you directly embed PHP and HTML tags directly in your Perl code!

print "in perl...\n";

<?php print("in php!\n"); var_dump(array(1,2,3)); ?>;

print "back in perl...\n";

my @links = ('http://google.com', 'http://synacor.com');

<html lang="en">;
  <body class="hax">;
    foreach my $link (@links) {
      <li class="item">;<a href="\$link">;
        print "go to $link!";
      </a>;</li>;
    }
  </body>;
</html>;

print "\n\naaaand done!\n";

About

Embed HTML and PHP in your Perl scripts!


Languages

Language:Perl 100.0%