Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Web page output for sendmail problem

by arrow (Friar)
on Nov 22, 2002 at 21:31 UTC ( [id://215251]=note: print w/replies, xml ) Need Help??


in reply to Web page output for sendmail problem

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";
use CGI::Carp qw(fatalsToBrowser);


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.

Cheers

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-20 01:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found