soumyapanda has asked for the wisdom of the Perl Monks concerning the following question:
Hi, i need to write a code to arrange three arrays where every index location corresponds to each other in a manner that the first array is arranged alphabetically,and the seconded array should be arranged in a desecending order of size, and third array should take the corresponding values of the first two arrays.
Array1= {A,B,A,C,D,C,D,B} Array2={10,13,11,9,7,6,4,2} Array3={as,ad,ae,at,ag,ak,ao,we} The output i need is Array1={A,A,B,B,C,C,D,D} Array2={11,10,13,2,9,6,7,4} Array3={ae,as,ad,we,at,ak,ag,ao}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Array sorting
by jwkrahn (Abbot) on Jul 27, 2011 at 06:20 UTC | |
|
Re: Array sorting
by BrowserUk (Patriarch) on Jul 27, 2011 at 05:52 UTC |