Forum Moderators: coopster & phranque

Message Too Old, No Replies

What if Perl support inline scripting?

         

foxfox

2:46 pm on Dec 2, 2006 (gmt 0)

10+ Year Member



e.g.

<html>

<?pl

echo 'hello perl';

?>

</html>


it would be very nice!

phranque

10:35 pm on Dec 2, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



there is something called "perl server pages" of which i know nothing other than it allows perl scripting in your html.

i only mention this because we have developed our own psp in-house, so it can be done but i wouldn't recommend starting from scratch...

perl_diver

12:34 am on Dec 3, 2006 (gmt 0)

10+ Year Member



there are a few perl embedding technologies. Search google for "embedded perl" and "perlscript".

[perl.apache.org...]
[cpan.org...]

leunga

2:44 am on Dec 13, 2006 (gmt 0)

10+ Year Member



You may also learn about Mason. With it, you can do something like this.

Code:
<html>
I have got <% print 4+4; %> apples.
</html>

Output:
I have got 8 apples.