Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: $SIG{__DIE__} not working as expected

by ferreira (Chaplain)
on Jun 09, 2008 at 00:37 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://690974]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-26 03:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found