Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Config files in CPAN modules?

by adamk (Chaplain)
on Jul 22, 2006 at 12:57 UTC ( #563005=note: print w/ replies, xml ) Need Help??


in reply to Config files in CPAN modules?

File::UserConfig might be one way to at least handle the initial case.

It installs to the module's "auto" share directory a default copy of the configuration file/directory.

When the program runs the first time for a new user, it copies it to the appropriate place.

For the upgrade case, perhaps what Ruby on Rails does for SQL schema. You have the config in a format you can manipulate, then write a series of classes that upgrade or downgrade from one version to the next.

Upgrading over a number of releases just means running each upgrade sequentially (with a backup first).


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://563005]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2015-07-28 04:57 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 (252 votes), past polls