Arsenii Gorkin has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Modules inheritance
by GrandFather (Saint) on May 26, 2016 at 21:28 UTC | |
by Arsenii Gorkin (Novice) on May 26, 2016 at 21:38 UTC | |
by GrandFather (Saint) on May 26, 2016 at 22:12 UTC | |
by Arsenii Gorkin (Novice) on May 26, 2016 at 22:21 UTC | |
|
Re: Modules inheritance
by stevieb (Canon) on May 26, 2016 at 21:44 UTC |