<?xml version="1.0" encoding="windows-1252"?>
<node id="910253" title="Re^2: Dumb, non-question: How to return 'nothing'." created="2011-06-17 16:09:41" updated="2011-06-17 16:09:41">
<type id="11">
note</type>
<author id="195718">
hardburn</author>
<data>
<field name="doctext">
&lt;p&gt;That's a nice solution, but is there any particular reason to use an arrayref rather than a scalarref? It'd make the iterating code just a bit cleaner:&lt;/p&gt;

&lt;code&gt;
while( my $next = $iter-&gt;() ) {
    $next = $$next;
    ...
}
&lt;/code&gt;

&lt;p&gt;As opposed to:&lt;/p&gt;

&lt;code&gt;
while( my $next = $iter-&gt;() ) {
    ($next) = @$next;
    ...
}
&lt;/code&gt;

&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-195718"&gt;
&lt;hr /&gt;
&lt;p&gt;"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, &lt;i&gt;Myst: The Book of D'ni&lt;/i&gt;.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
910184</field>
<field name="parent_node">
910191</field>
</data>
</node>
