use strict; my %one; my %two; my %three; my @hashes = qw(one two three); for my $i(@hashes) { for my $j(keys %$i) { #do something } }
I get the big gong show 'no strict refs' error on this one. how can i look through a set of hashes using keys, yet keeping them seperate in the loops?
humbly -c
In reply to foreach keys over multiple hashes by c
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |