Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Config files in CPAN modules?

by eric256 (Parson)
on Jul 21, 2006 at 15:30 UTC ( #562888=note: print w/ replies, xml ) Need Help??


in reply to Config files in CPAN modules?

Allow the user to sub-class your module and specify there configuration there (either as a reference to a file or the actual configuration

package My::Whatever; use base Whatever; sub config_file { "/usr/home/whatever" };

Seems like this gives the most power to everyone involved, even means that i could have several configurations and easy access to each.


___________
Eric Hodges


Comment on Re: Config files in CPAN modules?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2014-09-23 19:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (239 votes), past polls