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.
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!
Enoch was right!
Enjoy the last years of Rome.