Calling with '&' can affect both prototype checking and the value of @_ passed to the sub. With &, the prototype check is skipped, and if no parenthesized arguments are given the existing @_ is passed as the argument list.
After Compline,
Zaxo
In reply to Re: Calling subs with &
by Zaxo
in thread Calling subs with &
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |