|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re^2: why avoid & on function callby chromatic (Archbishop) |
| on Dec 27, 2020 at 17:34 UTC ( [id://11125798]=note: print w/replies, xml ) | Need Help?? |
|
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 Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||