<?xml version="1.0" encoding="windows-1252"?>
<node id="1005133" title="Re: ImageMagick Point Query" created="2012-11-22 08:51:03" updated="2012-11-22 08:51:03">
<type id="11">
note</type>
<author id="27571">
ColonelPanic</author>
<data>
<field name="doctext">
&lt;p&gt;Just a quick usage note: in Perl there is almost always an easier solution than C-style for loops&lt;/p&gt;
&lt;code&gt;
for my $col (50..99) 
{
    for my $row (150..199) 
    {
        #same code here
    }
}
&lt;/code&gt;
&lt;p&gt;It's a small point, but in my experience incorrectly handled iterator variables are a common source of mistakes. Letting Perl take care of that means fewer headaches.&lt;/p&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-27571"&gt;
&lt;br&gt;&lt;br&gt;When's the last time you used duct tape on a duct?  --Larry Wall
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1005127</field>
<field name="parent_node">
1005127</field>
</data>
</node>
