Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Web page output for sendmail problemby arrow (Friar) |
on Nov 22, 2002 at 21:31 UTC ( [id://215251]=note: print w/replies, xml ) | Need Help?? |
The line use CGI::Carp qw(fatalsToBrowser);, which should be added at the top of your script, just below the #!/usr/local/bin/perl line and the print "Content-type: text/html\n\n"; line. Example: #!/usr/local/bin/perl print "Content-type: text/html\n\n";
This module will print out any fatal errors in your script to the browser, instead of the hated "500 error". Usually the information it prints is very helpful in debugging your script.
In Section
Seekers of Perl Wisdom
|
|