in reply to Critique my First Script for me?
Is a little hard on the eyes. All those keywords, punctucation, backslashes, etc.. Instead consider using a here-document (sometimes called a here-script):print ... print ... print ... print ... print ...
They're documented in the "perldata" manual page. For now, just remember to put the opening token right after the <<, use a semicolon at the end of that line, and put the closing token ("EOHTML") against the left edge on a line by itself and you'll be okay.print<<EOHTML; Content-type: text/html <html> <body> <font color="blue">$words</font> </body> </html> EOHTML
|
|---|