others place them at the start because of the behaviour when not using the ampersand
Another reason is to avoid accidentally closing over lexical variables declared outside of function scope.
Improve your skills with Modern Perl: the free book.
In reply to Re^2: why avoid & on function call
by chromatic
in thread why avoid & on function call
by fireblood
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |