in reply to Re: Checking the success of eval
in thread Checking the success of eval
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")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re: Checking the success of eval
by ncw (Friar) on Apr 21, 2001 at 02:31 UTC |