<?xml version="1.0" encoding="windows-1252"?>
<node id="972114" title="Re: Array of hashes misbehaving?" created="2012-05-23 18:22:14" updated="2012-05-23 18:22:14">
<type id="11">
note</type>
<author id="888573">
Eliya</author>
<data>
<field name="doctext">
&lt;blockquote&gt;
&lt;i&gt;This fixes the problem: ...&lt;/i&gt;
&lt;/blockquote&gt;
&lt;p&gt; Actually, in this particular case, you could also just &lt;i&gt;not&lt;/i&gt; initialize the array, i.e. simply say &lt;/p&gt;
&lt;c&gt;
my @hashes;
$hashes[$_]{$_} = 1 foreach (0 .. 9);
&lt;/c&gt;
&lt;p&gt; and let autovivification do the job. &lt;/p&gt;
</field>
<field name="root_node">
972111</field>
<field name="parent_node">
972111</field>
</data>
</node>
