in reply to Re^2: Warning for "unused sub declarations"?
in thread Warning for "unused sub declarations"?
If the sub isn't declared or defined before use, then you can't call it like a builtin - without & and parentheses around the arguments. That's the main disadvantage for me.Huh?!? You're joking? Indeed I do declare my subs to be able to call them without parentheses - fair enough. But it is never stressed enough that in Perl5 (as opposed to Perl4 and previous versions) the &-form of of sub call should never ever be used unless you really need it, i.e. you do know what you're doing. See perlsub.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Warning for "unused sub declarations"?
by jonadab (Parson) on May 20, 2005 at 12:29 UTC | |
by fishbot_v2 (Chaplain) on May 20, 2005 at 20:12 UTC | |
by jonadab (Parson) on May 20, 2005 at 20:44 UTC | |
|
Re^4: Warning for "unused sub declarations"?
by chas (Priest) on May 20, 2005 at 12:40 UTC | |
by blazar (Canon) on May 20, 2005 at 12:47 UTC |