Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: highest value in hash (defined)

by Anonymous Monk
on Mar 31, 2013 at 04:12 UTC ( #1026330=note: print w/ replies, xml ) Need Help??


in reply to Re: highest value in hash
in thread highest value in hash

Just say no to defined :)

... my( $highest_value, $highest_key ) = each %hash; while (my ($key, $value) = each %hash) ...


Comment on Re^2: highest value in hash (defined)
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2015-07-07 06:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls