# use hashrefs to avoid them being expanded into the list. @array = (\%hash0, \%hash1, \%hash2, \%hash3); # Loop over the array for my $href (@array) { for my $key (keys %$href) { print "key: $key, value: $href->{$key}\n"; } }
In reply to Re: Loop through array of hashes
by hippo
in thread Loop through array of hashes
by rjulich
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |