dgaramond2 has asked for the wisdom of the Perl Monks concerning the following question:
Up until now I usually handle application configuration with a combination of: a) YAML parser module; b) reading env vars by myself, and c) Getopt::Long. Which is boring, to say the least.
After a bit of CPAN browsing, I find App::Options fills my needs quite nicely. It provides usage text via --help automatically (a big! point). It can also merge configuration from command line, environment variables, and config files.
The only thing it doesn't seem to handle is data structures like arrays or hashes (e.g. specifying multiple --exclude's and --include's).
And it would be nice if the module doesn't invent its own file format, I prefer YAML. Or at least, the file format should be able to handle data structures too.
Is there a better-fitting Perl module for me?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Searching for the perfect application config module
by madbombX (Hermit) on Nov 11, 2006 at 05:41 UTC | |
|
Re: Searching for the perfect application config module
by fmerges (Chaplain) on Nov 11, 2006 at 21:37 UTC |