NAME(LIST); # & is optional with parentheses. NAME LIST; # Parentheses optional if predeclared/imported. &NAME(LIST); # Circumvent prototypes. &NAME; # Makes current @_ visible to called subroutine.
Unless I am creating a reference to a sub (my $subref = \&somesub;), I almost never even think about using & with a sub name purely out of habit. The rare exception is when I am using goto &somesub; which @_ gets inherited.
Cheers - L~R
In reply to Re^3: is this script secured enough from internet attacks
by Limbic~Region
in thread is this script secured enough from internet attacks
by tercoz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |