Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2023-02-09 00:09 GMT
Find Nodes?
    Voting Booth?
    I prefer not to run the latest version of Perl because:

    Results (44 votes). Check out past polls.