I have a script that gets user options from the command line (using Getopt::Long) but the number of options is getting out of hand. I'm thinking of moving to a config file (or at least having the ability to use a config file instead of, or in addition to the command line options) but there are so many modules that deal with config files that I'm not sure which to use. This is my first Perl script of more than a handful of lines and I'm not at all what you'd call a Perl expert (in fact I probably don't know all the basics yet) so what I'm looking for is an EASY way to get options from a plain text configuration file (NOT XML), and write back one value that may be changed inside the script (which I guess means rewriting the entire config file with the changed value). In looking through the CPAN modules it seems there are many available, but I'm wonder which would be the easiest to use. One other thing, it should not be limited to a specific platform (right now the script runs on Windows, Mac OS X, and even some versions of Linux).
Again the major criteria for me at this point is that it be easy to use, preferably with a good explanation of how to use it. What module do you think would come closest to meeting that criteria? Any suggestions would be appreciated.
In reply to What is easiest config file parser? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |