in reply to Breaking up a big module
I feel like I might be missing the point, but isn't parent what you are looking for? If you have use parent 'Foo::Bar'; at the top of you Foo package, any call of the form $obj->method with $obj blessed into Foo will try to call Foo::method, and failing that, try again for every module in the @ISA list (in this case Foo::Bar).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Breaking up a big module
by hdb (Monsignor) on Apr 25, 2019 at 13:34 UTC | |
Re^2: Breaking up a big module
by LanX (Saint) on Apr 25, 2019 at 13:34 UTC | |
by Eily (Monsignor) on Apr 25, 2019 at 14:24 UTC | |
by hdb (Monsignor) on Apr 25, 2019 at 13:36 UTC | |
by LanX (Saint) on Apr 25, 2019 at 13:41 UTC | |
by hdb (Monsignor) on Apr 25, 2019 at 13:45 UTC | |
by LanX (Saint) on Apr 25, 2019 at 13:54 UTC |
In Section
Seekers of Perl Wisdom