note
gellyfish
<p>Yes, when you use <code>$SIG{__DIE__}</code> it will get called if the program would die irrespective of whether there is an <code>eval { }</code> around the point that is dying, as you can see from:
<code>
$SIG{__DIE__} = sub { print "die handler: " , @_ };
eval
{
die "DIE NOW";
};
print "Still alive";
</code>
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.
</p>
<p>/J\</p>
580738
580738