I consider eval to be an essential feature of Perl and $SIG{__DIE__} to be a mostly bad idea. So if you want to fix the buggy conflict that they have, I really think you should be fixing the die handler and not the eval:
$SIG{__DIE__}= sub { return if $^S; print "Caught by die handler: @_"; exit; }
Better still is to avoid die handlers altogether and either use eval to catch the exception or use a destructor or END block to do the clean up.
- tye (but my friends call me "Tye")In reply to (tye)Re: Checking the success of eval
by tye
in thread Checking the success of eval
by ton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |