Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: printing largest hash value

by brian_d_foy (Abbot)
on Feb 22, 2005 at 04:06 UTC ( #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? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2022-07-05 22:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?