Welcome to the Monastery | |
PerlMonks |
Re: What magic is this?by gellyfish (Monsignor) |
on Oct 26, 2006 at 12:56 UTC ( [id://580750]=note: print w/replies, xml ) | Need Help?? |
Yes, when you use $SIG{__DIE__} it will get called if the program would die irrespective of whether there is an eval { } around the point that is dying, as you can see from: The program doesn't "die" but the "__DIE__" handler gets called nonetheless. This is the documented behaviour. You'll need to rethink the way you are handling errors. /J\
In Section
Seekers of Perl Wisdom
|
|