<?xml version="1.0" encoding="windows-1252"?>
<node id="1000017" title="Re: How to call a sub-routine ref" created="2012-10-19 14:43:26" updated="2012-10-19 14:43:26">
<type id="11">
note</type>
<author id="5842">
PrakashK</author>
<data>
<field name="doctext">
&lt;p&gt;Is the first one even correct? I get the &lt;code&gt;Useless use of private variable in void context&lt;/code&gt; warning, when warnings are enabled.&lt;/p&gt;

&lt;p&gt;Or, did you mean to say:&lt;/p&gt;

&lt;code&gt;
  &amp;$ref();
&lt;/code&gt;

&lt;p&gt;I prefer the second one, as it feels more consistent with the way the other references are used as well:&lt;/p&gt;

&lt;code&gt;
  $aref-&gt;[...];   # as opposed to @$ref[...]
  $href-&gt;{...};   # as opposed to %$ref{...}
&lt;/code&gt;
</field>
<field name="root_node">
999996</field>
<field name="parent_node">
999996</field>
</data>
</node>
