Think about Loose Coupling | |
PerlMonks |
(tye)Re: Checking the success of evalby tye (Sage) |
on Apr 21, 2001 at 02:04 UTC ( [id://74348]=note: print w/replies, xml ) | Need Help?? |
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:
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 Section
Meditations
|
|