Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: How to compare hash values within the same hash?

by choroba (Abbot)
on Sep 24, 2013 at 22:39 UTC ( #1055555=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    %hash = (
        key1 => 10,
        # ...
    );
    
  2. or download this
    my %freq;
    my ($max_freq, $max_value) = 0;
    ...
        }
    }
    print "$max_value: $max_freq times\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2014-08-30 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls