Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
(zdog) Re: Extracting array of hashes from databy zdog (Priest) |
on Jun 10, 2001 at 01:33 UTC ( [id://87239]=note: print w/replies, xml ) | Need Help?? |
You may be looking to do something like this: $alldata{$key} = \%temphash; Instead of: $alldata{$key} = push [ %temphash ]; It sets $alldata{$key} as a reference to %temphash. So the content is accessed using $alldata{$key}{$key2}. Zenon Zabinski | zdog | zdog7@hotmail.com
In Section
Seekers of Perl Wisdom
|
|