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

Re: How can one find five max values and five min values with positions in descending and ascending order from arrays?

by Jenda (Abbot)
on Apr 26, 2013 at 15:01 UTC ( #1030848=note: print w/ replies, xml ) Need Help??


in reply to How can one find five max values and five min values with positions in descending and ascending order from arrays?

I have two arrays i.e. @x and @y containing eight names and eight numerical values, respectively. Each name in @x corresponds to the particular value in @y at the specific position.

DON'T!

This is a bad datastructure decision and this task is just one of the many that are harder than necessary due to this. Do store the data as an array of arrays or array of hashes!

Jenda
Enoch was right!
Enjoy the last years of Rome.


Comment on Re: How can one find five max values and five min values with positions in descending and ascending order from arrays?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (12)
As of 2015-01-28 09:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (213 votes), past polls