<?xml version="1.0" encoding="windows-1252"?>
<node id="497208" title="Re^2: If I was forced to use only one kind of loop for the rest of my days it would be a" created="2005-10-04 07:25:39" updated="2005-10-04 03:25:39">
<type id="11">
note</type>
<author id="493758">
Moron</author>
<data>
<field name="doctext">
(Updated) I rather feel some people would regret their choices.   Only recursion can replace all the others, although I voted for &lt;b&gt;for&lt;/b&gt;, because recursion is not technically a loop and in many replacement scenarios it would need some horrible overworking to overcome certain scoping issues, but &lt;b&gt;for&lt;/b&gt; has enough machinery to replace everything else except recursion.  For example, &lt;code&gt;while (condition)&lt;/code&gt; is functionally the same as &lt;code&gt;for (;condition;)&lt;/code&gt; and &lt;code&gt;do {} while (condition)&lt;/code&gt; could be replaced by &lt;code&gt;for (my $first = 1; $first or condition; $first=0) {}&lt;/code&gt;

</field>
<field name="root_node">
496105</field>
<field name="parent_node">
496810</field>
</data>
</node>
