<?xml version="1.0" encoding="windows-1252"?>
<node id="893132" title="Re: Wrong result for &quot;length keys %$hashref&quot;?" created="2011-03-14 15:48:11" updated="2011-03-14 15:48:11">
<type id="11">
note</type>
<author id="664508">
philipbailey</author>
<data>
<field name="doctext">
&lt;p&gt;The documentation of [perldoc://length] answers your question:&lt;/p&gt;

&lt;p&gt;'length  Returns the length in characters of the value of EXPR.  If EXPR is omitted, returns length of $_.  Note that this cannot be used on an entire array or hash to find out how many elements these have.  For that, use "scalar @array" and "scalar keys %hash" respectively.'&lt;/p&gt;</field>
<field name="root_node">
893123</field>
<field name="parent_node">
893123</field>
</data>
</node>
