Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: max value in a hash

by liz (Monsignor)
on May 31, 2004 at 09:22 UTC ( #357754=note: print w/replies, xml ) Need Help??


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
    thats nice. I like...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://357754]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2016-09-27 07:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (496 votes). Check out past polls.