in reply to [untitled node, ID 460085]
Greetings Angharad,
Debugging through PM posts isn't optimum for this sort of thing, but here are a couple of ideas that come my mind:
- Ensure the file is a UNIX file, not DOS
- Ensure the #! line is at line 1
- Remove the first print line and replace with one of the two following things:
- my $cgi = new CGI; print $cgi->header;
- use CGI qw(header); print header;
- Run the script from the command-line and post what you get
gryphon
Whitepages.com
code('Perl') || die;
In Section
Seekers of Perl Wisdom