<?xml version="1.0" encoding="windows-1252"?>
<node id="718047" title="Re^5: Generate the perl sequence 1, 11, 111, ...." created="2008-10-19 08:09:47" updated="2008-10-19 08:09:47">
<type id="11">
note</type>
<author id="460541">
monarch</author>
<data>
<field name="doctext">
I would agree with the printf being a trap without a formatting string. However I would disagree that C-style for loops are more error-prone than the double-dot operator. I disagree, however, that c-style loops are harder to understand.

&lt;p&gt;I personally find it much harder to mentally parse the &lt;code&gt;for my $i ( 1 .. $counter )&lt;/code&gt; because it forces me to remember whether the &lt;code&gt;..&lt;/code&gt; operator is a toggle or a list generator, and then I have to wonder if list generation is less efficient than the C-style comparison and increment operators.</field>
<field name="root_node">
716367</field>
<field name="parent_node">
716538</field>
</data>
</node>
