Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by sleepingsquirrel (Chaplain)
on Feb 03, 2005 at 21:12 UTC ( [id://427825]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @topN = (sort @X)[0..($N-1)];
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2024-04-23 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found