This seems like such a no brainer ... but I can't wrap my mind around it.
# say I've got a two dimensional array... @a = ( ["oops", 0], [ "happy", 2 ], [ "word", 4 ] ); # and I wanna print the contents of it thusly: foreach $ar (@a) { print "$ar->[0] is $ar->[1]\n" } # how would I sort the @a based on the $ar->[0]?
In reply to sort my arrayref by jettero
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |