# Works. my $a = 'whatever'; # just happens to be in scope of below sort block @arr2 = sort { our $a; $a <=> $b } @arr1; print join(' ', @arr2), "\n";
In reply to Re^2: my $a outside sort block incompatibility
by Anonymous Monk
in thread my $a outside sort block incompatibility
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |