Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Automatic stack traces for warns and dies

by fergal (Chaplain)
on Jul 30, 2004 at 23:44 UTC ( [id://378837]=note: print w/replies, xml ) Need Help??


in reply to Re: Automatic stack traces for warns and dies
in thread Automatic stack traces for warns and dies

That is a simpler implementation but it doesn't preserve the original values in %SIG and will also mess up anything that uses real exceptions (as in Error or Exception::Class) which might do something like
eval { something_that_might_die()}; if ($@->isa('FileException')) { handle_file_exception } else { die $@; }

Replies are listed 'Best First'.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-26 07:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found