use List::Util qw(max); my $max = max values %hashName;
Please note that values() creates aliases to the values in the hash, so this method would not involve copying any values of the hash (and would therefore scale pretty well).
Liz
In reply to Re: max value in a hash
by liz
in thread max value in a hash
by rsiedl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |