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

Re^2: Better mousetrap (getting top N values from list X)

by Anonymous Monk
on Feb 03, 2005 at 10:12 UTC ( [id://427569]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @top26 = my($a, $b, $c, $d, $e, $f, $g, $h, $i, $j, $k, $l, $m, $n,
    + $o, $p, $q, $r, $s, $t, $u, $v, $w, $x, $y, $z) = sort @foo
    
  2. or download this
    my @top26 = top (26, @foo);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-19 22:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found