Config::Layered::Source::ConfigAny - The Configuration File Source
The ConfigAny source provices access to running ConfigAny on a given file stem.
my $config = Config::Layered->load_config( sources => [ 'ConfigAny' => { file => "/etc/myapp" } ], default => { foo => "bar", blee => "baz", bax => { chicken => "eggs", } } );
Provided a file /etc/myapp
with the following content:
foo: this bax: chicken: no-eggs pork: chops
The following data structure in $config
would be the result:
{ foo => "this", blee => "baz", bax => { chicken => "no-eggs", pork => "chops", }