NAME
exact::conf - Cascading merged application configuration extension for exact
VERSION
version 1.07
SYNOPSIS
use exact -conf;
DESCRIPTION
exact::conf is a cascading merged application configuration extension for exact. It effectively is an integration of Config::App with exact. Consult the Config::App documentation for additional information. See the exact documentation for additional information about extensions. The intended use of exact::conf is via the extension interface of exact.
use exact -conf, -cli, -noutf8;
However, you can also use it directly, which will also use exact with default options:
use exact::conf;
IMPORTED FUNCTION
There is only 1 imported function:
conf
This...
use exact -conf;
say conf->get('answer');
...is equivalent to this...
use Config::App;
say Config::App->new->get('answer');
If you'd like to load Config::App but skip its default import process that looks for default-location-located configuration files and errors if it can't find such, pass some false value. For example, if you want to specify a non-default-located configuration file at runtime, do this:
use exact 'conf(0)';
say conf('settings/conf.yaml')->get('answer');
SEE ALSO
You can look for additional information at:
AUTHOR
Gryphon Shafer <gryphon@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2019-2050 by Gryphon Shafer.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)