Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: highest value in hash

by Athanasius (Archbishop)
on Mar 31, 2013 at 02:44 UTC ( #1026319=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! perl
    use warnings;
    ...
    
    print "The element with key $highest_key " .
          "has the highest value $highest_value\n" if defined $highest_key
    +;
    
  2. or download this
    12:36 >perl 591_SoPW.pl
    4 key has value 7
    ...
    The element with key 1 has the highest value 8
    
    12:38 >
    
  3. or download this
    if (!defined $highest_value || $highest_value lt $value)
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2022-08-11 11:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?