Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Embeding Perl in HTML the PHP way

by Your Mother (Bishop)
on Sep 11, 2012 at 19:41 UTC ( #993046=note: print w/replies, xml ) Need Help??

in reply to Embeding Perl in HTML the PHP way

#!/usr/bin/env perl use Template; my $tt = Template->new({ EVAL_PERL => 1 }); $tt->process(\*DATA) or die $tt->error(), $/; __DATA__ [% PERL %] print "OHAI DER!"; [% END %]

The Template code is no simpler than the Mojolicious example but still good to know about. Mason will do the same thing in a slightly different way as well.

Update: nagged into adding links. I HAZ A LAZY. :P

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://993046]
[LanX]: hmm strange, when doesn a module appear on CPAN but is excluded on MetaCPAN?
[shmem]: LanX, this?

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2018-03-21 21:46 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (271 votes). Check out past polls.