Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Testing redirected croak messages

by macrobat (Beadle)
on Oct 28, 2005 at 19:47 UTC ( [id://503752]=note: print w/replies, xml ) Need Help??


in reply to Testing redirected croak messages

Actually, the solution I came upon was to carp using redirection, reset STDERR to its original destination, and then croak. That way the log gets written before dying, and anything that causes failure also gets written to the terminal (if it's not redirected by the shell).

Thanks everyone for the suggestions, though.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-23 09:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found