Ankur_kuls has asked for the wisdom of the Perl Monks concerning the following question:
Hi All, I have the below data as the elements of an array (lets say @array).
field1,fieldA,fileda (1st element) field2,fieldB,filedb (2nd element & on) field3,fieldC,filedc
where all fields are numeric values. now I need to join these elements in one scalar value ($all_data) but only after they are sorted in descending order on the basis of second field (ie fieldA, fieldB). Any one pls could help me in this...Pls let me knoe if you need more info. on that...thanks a lot
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to sort in perl on the basis of one field.
by bigj (Monk) on Jul 29, 2014 at 05:54 UTC | |
|
Re: How to sort in perl on the basis of one field.
by Laurent_R (Canon) on Jul 29, 2014 at 06:15 UTC | |
|
Re: How to sort in perl on the basis of one field.
by 2teez (Vicar) on Jul 29, 2014 at 07:07 UTC | |
|
Re: How to sort in perl on the basis of one field.
by Anonymous Monk on Jul 29, 2014 at 07:10 UTC | |
|
Re: How to sort in perl on the basis of one field.
by rovf (Priest) on Jul 29, 2014 at 05:52 UTC |