Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: printing largest hash value

by brian_d_foy (Abbot)
on Feb 22, 2005 at 04:06 UTC ( [id://433244]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    my @largest = @keys[0..$i-1];
    
    print qq|Largest are "@largest"\n|;
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    my @largest = grep { $h{$_} == $h{$keys[0]} } @keys;
    
    print qq|Largest are "@largest"\n|;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-03-28 23:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found