Another way to do this might be this:
#!/usr/bin/perl -w use strict; use CGI; print "Content-Type: text/html\n\n"; print "<p>resource input</p>\n"; print "<h1>resource</h1>\n";
print << "END_OF_HTML"; Content-Type: text/html\n\n <p>resource input</p> <h1>resource</h1> END_OF_HTML
Might take a look at Ovid's Course
Thanks to jeffa for pointing this node out: (Ovid - CSS in external file) Re: CGI
Update: Changed first line as it wasn't worded right and added last line
"Pain is weakness leaving the body, I find myself in pain everyday" -me
In reply to Re: cgi question
by kutsu
in thread cgi question
by rootstock
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |