my %one; my %two; my %three; my @hashes = (\%one, \%two, \%three); for my $hash (@hashes) { for my $key (keys %$hash) { # do something } }
-- Mike
--
just,my${.02}
In reply to Re: foreach keys over multiple hashes
by thelenm
in thread foreach keys over multiple hashes
by c
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |