The usual idiom for this is to use the short circuiting provided by ||.
@data_sorted_by_three_fields = sort { $a->[2] <=> $b->[2] || $a->[0] <=> $b->[0] || $a->[4] <=> $b->[4] } @data;
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Sort 3X
by sauoq
in thread Sort 3X
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |