in reply to •Re: Constructors Without ->new()
in thread Constructors Without ->new()
Now now, never say never. Especially not when it comes to Perl.
It's quite right that Constructor->foo will resolve to Constructor()->foo, but that's not the only way to call a class method. Both
Constructor::->fooand
'Constructor'->foowill be "class method invocation".
I even prefer to use Constructor::->foo over the one without colons, for reasons explained in Re: Capitalized subroutine names and packages.
ihb
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Re: •Re: Constructors Without ->new()
by merlyn (Sage) on Oct 24, 2003 at 21:06 UTC |