Why it doesn't work: sort returns a list, not an array. To get an arrayref you've got to use the anonymous arrayref constructor as was previously mentioned.
In reply to Re: Simple Array Syntax question
by Fletch
in thread Simple Array Syntax question
by freddo411
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |