You already have good answers. TIMTOWTDI:
# Frequency of each value. my %freq; $freq{$_}++ for values %hash; # Sort by frequency. my @bucket; @bucket[values %freq] = keys %freq; print "There are $#bucket occurrences of the value $bucket[-1].\n";
In reply to Re: How to compare hash values within the same hash?
by Anonymous Monk
in thread How to compare hash values within the same hash?
by phildeman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |