That's a bad benchmark then. Flattening a thousand-element array into subroutine parameters requires putting a thousand SVs on the Perl 5 stack. Passing the same array by reference requires putting a single RV on the Perl 5 stack. Which one do you think will take longer?
In reply to Re^2: Speed of Array Returns
by chromatic
in thread Speed of Array Returns
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |