mhearse has asked for the wisdom of the Perl Monks concerning the following question:
package Test1; use base 'Example1'; ## overrided method sub getObjectId { my $self = shift; my $arg = shift; return Other::Package::lookupId($arg); } 1; package Test2; use base 'Example2'; ## overrided method sub getObjectId { my $self = shift; my $arg = shift; return Other::Package::lookupId($arg); } 1; package Test3; use base 'Example2'; ## overrided method sub getObjectId { my $self = shift; my $arg = shift; return Other::Package::lookupId($arg); } 1;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Role over subclasses
by grantm (Parson) on Nov 23, 2011 at 05:34 UTC | |
by mhearse (Chaplain) on Nov 23, 2011 at 16:32 UTC |