Syntactic Confectionery Delight | |
PerlMonks |
sorting array of arraysby Anonymous Monk |
on Jan 18, 2020 at 17:23 UTC ( [id://11111573]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: Hi all, I am trying to sort an array of arrays, but i am stuck. I have red some sources on the internet, but it is not helping me enough. I hope someone can tell me why i am failing. I am trying to sort this array on the second element. Here is the code:
The desired output is: 8,3 22,5 1,12 4,57. But all i'm getting is the same sorting as i started with. Tx in advance.
Back to
Seekers of Perl Wisdom
|
|