Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Config files in CPAN modules?

by pemungkah (Priest)
on Jul 25, 2006 at 22:52 UTC ( #563661=note: print w/ replies, xml ) Need Help??


in reply to Config files in CPAN modules?

I don't know if you'd consider it "slick" or not, but CPAN.pm does something like this.

It installs a basic set of config data in CPAN/Config.pm, which can be overridden by data stored by the user in .cpan (which CPAN.pm silently creates and manages).

Whether this is sufficiently cross-platform enough for you I don't know, but it's certainly an alternative.

I'd be tempted to suggest Config::Std for config files, except for the fact that it doesn't handle a dynamic choice of config file well (you can always eval a 'use', though).


Comment on Re: Config files in CPAN modules?

Log In?
Username:
Password:

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

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

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (265 votes), past polls