my %hash; $hash{"192.168.0.1"}{"randy"} = "thomas"; $hash{"192.168.0.1"}{"ken"} = "samual"; $hash{"192.168.0.2"}{"jessie"} = "jessica"; $hash{"192.168.0.2"}{"terry"} = "ryan"; foreach my $key1 ( keys %hash ) { map { print $hash{$key1}->{$_}, "\n" } keys %{$hash{$key1}}; }
In reply to Re: How to iterate through a hash of hashes?
by wee
in thread How to iterate through a hash of hashes?
by matt.schnarr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |