http://qs1969.pair.com?node_id=266914

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.