laziness, impatience, and hubris | |
PerlMonks |
Modules inheritanceby Arsenii Gorkin (Novice) |
on May 26, 2016 at 21:06 UTC ( [id://1164228]=perlquestion: print w/replies, xml ) | Need Help?? |
Arsenii Gorkin has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks!
I am working on a complex software and have a lot of modules here. I heard about inheritance in Perl but have never used it on practice. I have a few modules. Let's call them A.pm, A::1.pm, A::2.pm and A::3.pm. A.pm calls from inside module A::1, A::1 calls A::2 A::3 calls A (parent) and A::1 What is the best practice to handle this problem? The questions are:
1) Do I have to call all the modules I need from inside every module, or daughter modules automatically inherit functions from parent A.pm? 2) What to do with daughter modules which call their "sisters"? Like: does A::3 must call A::1? thanks! Regards Arsenii.
Back to
Seekers of Perl Wisdom
|
|