in reply to Design of a global-variable storage package

"App-Options combines command-line arguments, environment variables, option files, and program defaults..."

Other interesting possibilities:

Of these, the one I think holds the most promise is the last, because it was clearly designed with extensibility in mind. Config-Frontend doesn't seem to come with a backend for reading the command line, but one could easily be written.


Background

I went scrounging around CPAN for modules that would support simple, flexible application configuration management. Here's what I came up with.

First, there are modules which simply read/write certain config file formats:

For example:

There are modules which try to be config file polyglots:

There's a handful of modules that try to tackle the problem of locating config files:

Then there are modules that try to handle more sources of config info than just files, e.g. integrating command-line options with configfile data.

Those are the ones I listed in my reply, above.

PS - I'm not trying to downplay the power of any of these modules. I realize that some of them do a lot more than what I've characterized here. I'm just focusing on the types of data sources supported.

PPS - If you know of a module not listed here that you think ought to be, please /msg me first, rather than reply. Thanks.

We're building the house of the future together.