Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Show files on web pageby philcrow (Priest) |
on Feb 28, 2007 at 16:07 UTC ( [id://602530]=note: print w/replies, xml ) | Need Help?? |
If this is a CGI, you should probably start with CGI, it handles forming the HTTP response expected by the server and browser. (For instance, you have no HTTP header in your sample.)
Second, you can't nest code in the heredoc like that. I'd advise multiple prints instead, or better yet use of some of the CGI.pm helpers. Third, I'd suggest starting with a 'Hello world' page to make sure all the ducks are properly aligned, before trying to generate more interesting output. Phil
In Section
Seekers of Perl Wisdom
|
|