![]() |
|
"be consistent" | |
PerlMonks |
Re^3: One module to use them all (proxy moudle that exports subs of other modules)by pryrt (Abbot) |
on Sep 04, 2022 at 22:25 UTC ( #11146686=note: print w/replies, xml ) | Need Help?? |
Would it not be easier to add that line than a custom import function? That assumes that you know all the functions exported by all the sub-modules before designing the All.pm module. The OP specifically contradicted this assumption: "their export list is not fixed and changes from time to time". So, ::All needs to be designed in such a way that if ::Two v2.00 exports just twoFunction() , but ::Two v2.01 exports frobnicate() as well, ::All can still work without having to be updated.
In Section
Seekers of Perl Wisdom
|
|