in reply to Need help looping through HoH
foreach my $key (keys %hash) { print "$key = $hash{$key}\n"; }#foreach foreach my $value (values %hash) { print "value = $value\n"; }#foreach while ( my ($key, $value) = each %hash ) { print "$key = $value\n"; }#while
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Need help looping through hash
by ewhitt (Scribe) on Aug 31, 2008 at 08:54 UTC |