Syntactic Confectionery Delight | |
PerlMonks |
Re: $obj->method v.s. $obj->method()by Bloodnok (Vicar) |
on May 10, 2009 at 00:48 UTC ( [id://763093]=note: print w/replies, xml ) | Need Help?? |
Your assertion, regarding the difference between $f; and &f();, doesn't ring quite true - consider
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.
A user level that continues to overstate my experience :-))
In Section
Seekers of Perl Wisdom
|
|