Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 chilling in the Monastery: (5)
As of 2022-01-26 15:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (69 votes). Check out past polls.

    Notices?