RollyGuy has asked for the wisdom of the Perl Monks concerning the following question:
Hello fellow monks.
I've been working on a few scripts that have gone beyond simple command-line swtich configuration and have progressed right into needing some sort of configuration file. After having tried severl solutions, I realized that I was unsure of the best (or perhaps my favorite) way of storing program settings.
The three that I have seen/tried have been useful in different ways. The first method is the simple "this=that" in a file that you read in and make your settings. The second method was a perl file that the program simply read in and set up the parameters. The third was actually a configuration file I saw, and it was done in XML. Each of these have their pluses and minuses. I was wondering what people thought about these methods and whether there were ones I was missing out on.
I've been working on a few scripts that have gone beyond simple command-line swtich configuration and have progressed right into needing some sort of configuration file. After having tried severl solutions, I realized that I was unsure of the best (or perhaps my favorite) way of storing program settings.
The three that I have seen/tried have been useful in different ways. The first method is the simple "this=that" in a file that you read in and make your settings. The second method was a perl file that the program simply read in and set up the parameters. The third was actually a configuration file I saw, and it was done in XML. Each of these have their pluses and minuses. I was wondering what people thought about these methods and whether there were ones I was missing out on.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Configuration File Style
by defyance (Curate) on Jun 18, 2003 at 17:40 UTC | |
Re: Configuration File Style
by BazB (Priest) on Jun 18, 2003 at 17:47 UTC | |
Re: Configuration File Style
by valdez (Monsignor) on Jun 18, 2003 at 17:56 UTC | |
Re: Configuration File Style
by particle (Vicar) on Jun 18, 2003 at 18:27 UTC | |
Re: Configuration File Style
by Tomte (Priest) on Jun 18, 2003 at 18:34 UTC |
Back to
Seekers of Perl Wisdom