<?xml version="1.0" encoding="windows-1252"?>
<node id="1005459" title="Re^2: Replacing If Elsif Else with Hash" created="2012-11-24 22:35:31" updated="2012-11-24 22:35:31">
<type id="11">
note</type>
<author id="647953">
sundialsvc4</author>
<data>
<field name="doctext">
&lt;p&gt;
I strongly agree with this ... no matter how exactly you choose to write the routine or to initialize the hash.
&lt;/p&gt;&lt;p&gt;
When writing this sort of logic, be &lt;em&gt;extremely&lt;/em&gt; careful to test for the existence, or the absence, of the hash key ... &lt;u&gt;not&lt;/u&gt; for &amp;ldquo;falsehood.&amp;rdquo; &amp;nbsp; Someday you will have a hash-entry whose legitimate value translates to false. &amp;nbsp; Or even maybe to &lt;tt&gt;undef&lt;/tt&gt;.  &amp;nbsp; It&amp;rsquo;s just a hungry sort of &amp;ldquo;gotcha&amp;rdquo; that&amp;rsquo;s just waiting for your glutes.
&lt;/p&gt;</field>
<field name="root_node">
1005331</field>
<field name="parent_node">
1005395</field>
</data>
</node>
