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
In reply to Re: Need help looping through hash
by cosmicperl
in thread Need help looping through HoH
by ewhitt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |