Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: simple cgi script error

by gryphon (Abbot)
on May 24, 2005 at 17:18 UTC ( #460093=note: print w/ replies, xml ) Need Help??


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;


Comment on Re: simple cgi script error

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://460093]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2015-07-07 02:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (86 votes), past polls