Inside the sort block, $a and $b are elements of @bigArray, not indexes into it.
So if @bigArray contains array refs, both $a and $b end up being an array ref. And you can dereference and index into an array with the $a->[$index] syntax.
On the other hand if you write [$a], you wrap the array ref in $a into another array ref -- not what you want.
See perlreftut and perlref for more details.
In reply to Re^3: this doesn't sort
by moritz
in thread this doesn't sort
by hsfrey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |