Seem to work but when I subclass Two, that function just gone again... Seem I should end this in my first subclass by:
sub nameOfOldFunc {
shift;
return OldClass::nameOfOldFunc ( @_ ) ;
}
making it a method, and this become a method ever after.
Thank you very much for the help! | [reply] [d/l] [select] |
Any chance you could share some of your real code that demonstrates what you're attempting to do? What you've suggested here is not scalable, and a bit confusing.
Perhaps if we understood the real problem you're facing with real example code, we could provide better solutions to your dilemma.
Having both inherited and imported subs coming from the same module is a bit unusual, unless you're intentionally directing your API to both OO and functional crowds, or providing backwards-compatibility (there are other scenarios, but I digress).
| [reply] |