<?xml version="1.0" encoding="windows-1252"?>
<node id="273511" title="Re^2: Best Practices for Exception Handling" created="2003-07-11 14:24:23" updated="2005-07-27 15:50:05">
<type id="11">
note</type>
<author id="186362">
adrianh</author>
<data>
<field name="doctext">
&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;[http://perl.apache.org/docs/general/perl_reference/perl_reference.html#Alternative_Exception_Handling_Techniques|Alternative Exception Handling Techniques] in the mod_perl guide has more info on this. Also see the documentation on &lt;code&gt;$^S&lt;/code&gt; (in [perldoc://perlvar]) and [perldoc://die].&lt;/p&gt;
 &lt;/p&gt;

&lt;p&gt;It's often simpler just to override &lt;code&gt;CORE::GLOBAL::die&lt;/code&gt; and &lt;code&gt;CORE::GLOBAL::warn&lt;/code&gt;.&lt;/p&gt;</field>
<field name="root_node">
230799</field>
<field name="parent_node">
273381</field>
</data>
</node>
