In addition to the other comments in this thread, also see my "ref($proto) - just say no!", expanded in the last few paragraphs of my column on constructors which eventually caused the ugly parts of perltoot to be corrected in recent perl distributions.my $class = ref($invocant) || $invocant;
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to Re: Overriding constructor
by merlyn
in thread Overriding constructor
by nomis80
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |