Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How to pass an argument to a Module?

by bulk88 (Priest)
on Sep 10, 2012 at 02:21 UTC ( #992649=note: print w/ replies, xml ) Need Help??


in reply to How to pass an argument to a Module?

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.
  • Comment on Re: How to pass an argument to a Module?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://992649]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2016-07-26 20:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (240 votes). Check out past polls.