in reply to $obj->method v.s. $obj->method()
The statement &foo; calls foo using a mirror image of @_ i.e. as passed to frobnicate - whereas, as you point out, &bar() calls bar with an empty argument list - but neither call i.e. to foo() or bar(), modifies @_ as passed to frobnicate.sub frobnicate { &foo; &bar(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: $obj->method v.s. $obj->method()
by lodin (Hermit) on May 12, 2009 at 00:35 UTC |