Perl Monk, Perl Meditation | |
PerlMonks |
Re: Sorting an array of hash references of array referencesby nikmit (Sexton) |
on Aug 17, 2016 at 09:52 UTC ( [id://1169896]=note: print w/replies, xml ) | Need Help?? |
OK, found http://www.perlmonks.org/?node_id=599204 and came up with this: my @sorted = sort { $a->{entry}->[1] cmp $b->{entry}->[1] } @array;Seems to do the trick.
In Section
Seekers of Perl Wisdom
|
|