in reply to Re: syntax for calling a function
in thread syntax for calling a function
&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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: syntax for calling a function
by chromatic (Archbishop) on Jun 27, 2008 at 19:11 UTC |