in reply to max value in a hash
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: max value in a hash
by rsiedl (Friar) on May 31, 2004 at 09:29 UTC |
In Section
Seekers of Perl Wisdom