http://www.perlmonks.org?node_id=87239


in reply to Extracting array of hashes from data

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