<?xml version="1.0" encoding="windows-1252"?>
<node id="995802" title="Re^4: How to create loop in perl dynamically" created="2012-09-26 11:52:21" updated="2012-09-26 11:52:21">
<type id="11">
note</type>
<author id="647953">
sundialsvc4</author>
<data>
<field name="doctext">
&lt;tt&gt;foreach &lt;b&gt;my $foo&lt;/b&gt; (1 .. $x)&lt;/tt&gt; ... creates a local variable named &lt;tt&gt;$foo&lt;/tt&gt; which contains the current index for this particular loop. &amp;nbsp; Never use &lt;tt&gt;$_&lt;/tt&gt; for this purpose, usually.</field>
<field name="root_node">
995764</field>
<field name="parent_node">
995782</field>
</data>
</node>
