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.
ihbIn reply to Re: •Re: Constructors Without ->new()
by ihb
in thread Constructors Without ->new()
by hardburn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |