Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Automatic stack traces for warns and dies

by fergal (Chaplain)
on Jul 30, 2004 at 23:44 UTC ( #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
Node Status?
node history
Node Type: note [id://378837]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2020-11-27 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?