local $SIG{__WARN__} = \&HandlerSub; local $SIG{__DIE__} = \&OtherHandler;
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 reply to Re: Best Practices for Exception Handling
by yosefm
in thread Best Practices for Exception Handling
by Ovid
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |