This software merges command-line options, environment variables, and configuration files to provide a unified configuration for scripts.
The module is not an options validator, and instead uses command line options as overrides to existing keys in configuration files. Any unrecognized command line options are ignored, and @ARGV is modified to exclude recognized options, leaving barewords and unrecognized options in place and in the same order. If using another options module, it is crucial to call get_config() before calling their processor, so that @ARGV will be in a suitable condition.
Environment variables can act as a default to command line options or override any top-level configuration file key that is a scalar. With Activator::Config, you can effortlessly generate merged, complex configuration hierarchies that are context-sensitive. You can pass as complex a configuration as needed to any script or application and override any scalar configuration option using your environment variables or command line.
One amazing feature of Activator::Config is the support for realms. This support allows for default configurations for development, QA, production, or any number of arbitrary realms you desire. With a simple command line flag, you can instantly switch your configuration context. In summary, the Activator::Config module simplifies and streamlines the process of creating and managing intricate configurations in Perl.
Version 0.91: N/A