in reply to Re: How to use Perl in web pages?
in thread How to use Perl in web pages?

Corion,

Good answer; it neatly addresses the "get started quickly" feel which one gets from the OP's question.

You'll get an error, though, with this line:

print "<h1>Please enter your name</h1><form action=''> <input name="name" type="text"></form>";

because of the embedded quotes.

My favorite method for overcoming this problem (especially in CGI programming) has been to use the qq operator, eg.:

print qq[<h1>Please enter your name</h1><form action=''> <input name="name" type="text"></form>];

Stylistically, you'd also probably want to close the <body> tag too, with </body>, though of course it isn't a necessity.


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/