There are problems when you mix the signal handling style with other modules that use exception handling, or use it in persistent environments like mod_perl so (in my opinion) it is best avoided.
Alternative Exception Handling Techniques in the mod_perl guide has more info on this. Also see the documentation on $^S (in perlvar) and die.
It's often simpler just to override CORE::GLOBAL::die and CORE::GLOBAL::warn.
In reply to Re^2: Best Practices for Exception Handling
by adrianh
in thread Best Practices for Exception Handling
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |