note
wog
This line seems to be your problem:
</p>
<code>
$alldata{$key} = push [ %temphash ];
</code>
<p>
you probably really meant to push <code>%temphash</code>
on to the array ref in <code>$alldata{$key}</code>.
In that case you can reference that array
with <code>@{ $alldata{$key} }</code>.
Then you can just push a reference to <code>%temphash</code>
on top of it:
</p>
<code>
push @{ $alldata{$key} }, \%temphash;
</code>
<p>
(the array will be automatically created as needed)
</p>
<p>
Of course see [perldsc] and [perlref] if you haven't
already.
</p>
<p><strong>update</strong>: Typo fixed. Thanks [srawls].</p>
87227
87227