Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: $SIG{__DIE__} not working as expected

by ferreira (Chaplain)
on Jun 09, 2008 at 00:37 UTC ( #690974=note: print w/replies, xml ) Need Help??


in reply to $SIG{__DIE__} not working as expected

Any ideas or suggestions?

Read again the related documentation of die and $SIG{__DIE__}. In the last case, the documentation of $SGI{__DIE__} can be found at perlvar or if you have a brand new perldoc (like Pod-Perldoc-3.14_07), you can retrieve the docs that will help you with:

$ perldoc -v '$SIG{expr}'

The relevant piece is

When a __DIE__ hook routine returns, the exception processing continues as it would have in the absence of the hook, unless the hook routine itself exits via a "goto", a loop exit, or a die().

In other words, your current DIE handler does not stop the program from dying which explains the messages you are seeing.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2020-10-23 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (238 votes). Check out past polls.

    Notices?