UPDATE:
Otherwise you can simply invert the hash with reverse to get the one and only corresponding key of a max value.
The "best" solution depends on other criteria like time, memory or code complexity, which can only be specified by you...
Cheers Rolf
In reply to Re: max "value " of an hash (list?)
by LanX
in thread max "value " of an hash
by perl_user123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |