Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Refactoring conf-driven app into a module; what to do with the config?

by blue_cowdawg (Prior)
on Sep 17, 2012 at 18:36 UTC ( #994074=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package MyConfig; 
    
    ...
    our $database="thedata";
    
    1;
    
  2. or download this
       |random handwaving here...
    use MyConfig;
    ...
    my $database=$MyConfig::database;
    
       | now do something with it...
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2014-09-01 22:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (17 votes), past polls