![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Exceptions and Return Codesby Abigail (Deacon) |
on Jun 29, 2001 at 18:13 UTC ( #92621=note: print w/replies, xml ) | Need Help?? |
The disadvantage of using a bomb function
is that it only performs the intended task if you use
bomb. No CPAN module will do so. If you use
a __DIE__ handler, you will catch all
dies, including those from modules.
And it has the added benefit that if someone else has to maintain the code, she won't be wondering what this bomb function is for. -- Abigail
In Section
Seekers of Perl Wisdom
|
|