in reply to Re^2: Altering the inheritance path of an object
in thread Altering the inheritance path of an object
I would suggest creating an empty subclass then:
This way any method is first searched in the Package::Under::Test's hierarchy and only then in Utility::Subs.package Test::It; our @ISA = qw(Package::Under::Test Utility::Subs); 1; # ... later, in another file my $under_test = Test::It->new(...);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Altering the inheritance path of an object
by sundialsvc4 (Abbot) on Sep 28, 2012 at 12:16 UTC |
In Section
Seekers of Perl Wisdom