|
|
| Think about Loose Coupling | |
| PerlMonks |
(tye)Re: Checking the success of evalby tye (Sage) |
| on Apr 20, 2001 at 22:04 UTC ( [id://74348]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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
|
|
||||||||||||||||||||||||||||