Would something like this be easier and less (potentially) misleading...?
my $moo = 3; @arr2 = sort { $moo <=> $b } @arr1;
In reply to Re: my $a outside sort block incompatibility
by Your Mother
in thread my $a outside sort block incompatibility
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |