$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 reply to (zdog) Re: Extracting array of hashes from data
by zdog
in thread Extracting array of hashes from data
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |