&foo; sub foo { print "Hello\n" }
Don't forget that the following calls are identical:
&foo; &foo(@_); foo(@_);
Therefore, &foo; should be used with care (passing @_ explicitly is much more friendly, IMHO).
Update: chromatic is right, I should've checked perlsub before posting.
In reply to Re^2: syntax for calling a function
by alexm
in thread syntax for calling a function
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |