Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Deprecated use of $SIG{__DIE__} is useful

by perrin (Chancellor)
on Feb 28, 2009 at 23:04 UTC ( #747225=note: print w/ replies, xml ) Need Help??


in reply to Deprecated use of $SIG{__DIE__} is useful

The alternative would be to have a top level eval{} around your program that catches all uncaught exceptions and can apply processing like this to them.


Comment on Re: Deprecated use of $SIG{__DIE__} is useful
Re^2: Deprecated use of $SIG{__DIE__} is useful (stack)
by tye (Cardinal) on Mar 01, 2009 at 02:44 UTC

    No, a top-level eval cannot add a stack trace. It wouldn't catch the 'die' exception until after the stack had already been unrolled.

    - tye        

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2014-04-18 22:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (472 votes), past polls