Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2021-03-03 15:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (80 votes). Check out past polls.

    Notices?