|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: How to pass an argument to a Module?by bulk88 (Deacon) |
| on Sep 10, 2012 at 02:21 UTC ( #992649=note: print w/ replies, xml ) | Need Help?? |
|
Rather than use use/import settings, which are global to the process (last package to "use" the module in question wins the config war), create a root constructor class, all future/heavy objects are created from the per package method of the root constructor object. Each package can have its own constructor object with per caller package "global" settings.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||