keys needs a hash, not a hashref. You have to dereference the hashref to be left with a first-class hash:
foreach my $source ( keys %allData ) { foreach my $dest ( keys %{ $allData{$source} } ) { # access the values } }
See also perlref, perlreftut, and perldsc.
Dave
In reply to Re: Simple Anon Hash Query
by davido
in thread Simple Anon Hash Query
by murtu_4u
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |