Keep It Simple, Stupid | |
PerlMonks |
Re: Best Practices for Exception Handlingby yosefm (Friar) |
on Jul 11, 2003 at 14:43 UTC ( [id://273381]=note: print w/replies, xml ) | Need Help?? |
Another way of treating an error or warning as an event (which I have only learned a while ago and found useful) is to define handlers for it using:
But the problem with it is that you really must pay attention to your use of warn and die, as well as conditions when something not written by you might die.
In Section
Seekers of Perl Wisdom
|
|