There's a module, Sort::Key, for doing it faster, though it likely won't matter.for my $k (sort { $hash{$a} <=> $hash{$b} } keys %hash) { print "$k: $hash{$k}\n"; }
In reply to Re: Hashes: Obtaining the Key Value for a Given Value Value
by Roy Johnson
in thread Hashes: Obtaining the Key Value for a Given Value Value
by o2bwise
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |