As you suggest, the fastest of all is to simply call the sub with an ampersand, but really the difference is very small. I wonder whether this is running into unshift's worst-case performance.
Premature optimization and all that…
In reply to Re^5: Puzzle: The Ham Cheese Sandwich cut.
by robin
in thread Puzzle: The Ham Cheese Sandwich cut.
by Perl Mouse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |