<?xml version="1.0" encoding="windows-1252"?>
<node id="1003881" title="Re: Fix-it fix-it fix-it!" created="2012-11-14 14:41:38" updated="2012-11-14 14:41:38">
<type id="11">
note</type>
<author id="281137">
davido</author>
<data>
<field name="doctext">
&lt;p&gt;Perl's identifiers are case sensitive.  &lt;c&gt;%userHash&lt;/c&gt; is not the same as &lt;c&gt;%userhash&lt;/c&gt;.&lt;/p&gt;
&lt;p&gt;One of the first things I do in such situations is a global case-insensitive search for the identifier using my editor.  As I iterate through the search results it's much easier for my eyes to spot when something changes than by just skimming through the code.&lt;/p&gt;
&lt;p&gt;One thing that might have made it easier to spot would be following Schwern's [http://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;cad=rja&amp;ved=0CDMQFjAA&amp;url=http%3A%2F%2Fschwern.dreamhosters.com%2Ftalks%2FSkimmable%2520Code%2520-%2520YAPC-NA-2008.pdf&amp;ei=c_ejUIyeCIn2iwKV2ICIBg&amp;usg=AFQjCNFyDXKGARY4BFQzyNZGIhaOOP6TXA&amp;sig2=vpjnFkItkYyg8QUEqI6kOQ|Skimmable Code] talk's advice.  Moving some of the complexity in your while/if constructs into subroutines would move the usage of &lt;c&gt;%userhash&lt;/c&gt; visually closer to its declaration, which might be a good thing.&lt;/p&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-281137"&gt;
&lt;br /&gt;&lt;p&gt;Dave&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1003880</field>
<field name="parent_node">
1003880</field>
</data>
</node>
