XP is just a number | |
PerlMonks |
How to sort in perl on the basis of one field.by Ankur_kuls (Sexton) |
on Jul 29, 2014 at 05:22 UTC ( [id://1095463]=perlquestion: print w/replies, xml ) | Need Help?? |
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).
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
Back to
Seekers of Perl Wisdom
|
|