<?xml version="1.0" encoding="windows-1252"?>
<node id="72748" title="Re(3): NEWBIE Brain Teaser #2, by nysus" created="2001-04-16 02:33:05" updated="2005-07-19 14:08:39">
<type id="11">
note</type>
<author id="47827">
yakko</author>
<data>
<field name="doctext">
Because &lt;code&gt;@_&lt;/code&gt; is localised for the subroutine.  Since you called &lt;code&gt;subroutine&lt;/code&gt; with no parms, the &lt;code&gt;@_&lt;/code&gt; it's operating from has undef.&lt;p&gt;
As for &lt;code&gt;&amp;subroutine&lt;/code&gt;, &lt;code&gt;@_&lt;/code&gt; is not localised and the existing one is passed in. &lt;code&gt;$_&lt;/code&gt; need not apply outside the sub in any event -- the subroutine deals with &lt;code&gt;@_&lt;/code&gt;.
&lt;p&gt;-- &lt;br&gt;
Me spell chucker work grate.  Need grandma chicken.</field>
<field name="root_node">
72671</field>
<field name="parent_node">
72702</field>
</data>
</node>
