Just like the only thing you can pass to a sub is a list of scalars, the only thing you can return from a sub is a list of scalars.
You are evaluating an array in list context. An array in list context returns a list of its elements.
In reply to Re: Speed of Array Returns
by ikegami
in thread Speed of Array Returns
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |