Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: error messages without program names or line numbers

by perladdict (Chaplain)
on Aug 04, 2006 at 20:31 UTC ( #565743=note: print w/ replies, xml ) Need Help??


in reply to error messages without program names or line numbers

Hi EvanK,
premature death in a CGI script tends to cause server errors when the proper HTTP header doesn't get out to the server before the program pegs out.
. the function carpout redirects the warnings & errors to the filehandle specified in script.


Comment on Re: error messages without program names or line numbers
Re^2: error messages without program names or line numbers
by liverpole (Monsignor) on Oct 14, 2006 at 14:09 UTC

    From Chapter 32.5 of Programming Perl Version 3 "CGI::Carp":

    The module is also kinder to web surfers, since premature death in a CGI script tends to cause inscrutable "Server 500" errors when the proper HTTP header doesn't get out to the server before your program pegs out, and this module makes sure that doesn't happen.  The carpout function redirects all warnings and errors to the filehandle specified.

    perladdict, please be careful to attribute sources when you are quoting them, otherwise it might tend to appear that you are taking credit for words which were not originally yours.


    s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2014-09-20 07:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (157 votes), past polls