Sometimes there is synergy between cases 1 and 2 here, and so the construct
does the trick.my $pkg = ref($self) || $self;
Having a heteromorphic sub that does the third case as well is hard to achieve and not worth it. But, this is what CGI.pm does - see this node.
In reply to Re: Object functionality?
by rinceWind
in thread Object functionality?
by BUU
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |