in reply to Re: Re: Re: where do you put your subs
in thread where do you put your subs
The parens/ampersand are not much of a problem...I just wanted to point out that there is a side effect to not using parens on a subroutine/method call: the called subroutine "inherits" the @_ array of the caller. While most of you are probably aware of this it is something that can have some unintended consequences - hence my preference for always using the parens on subroutine calls.
Michael
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re (4): where do you put your subs
by Juerd (Abbot) on Mar 08, 2002 at 21:08 UTC | |
by demerphq (Chancellor) on Mar 12, 2002 at 13:23 UTC | |
by mpeppler (Vicar) on Mar 08, 2002 at 21:17 UTC |