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

Re: highest value in hash

by Athanasius (Archbishop)
on Mar 31, 2013 at 02:44 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-24 21:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found