Config::Merged - Load and merge configuration from different file formats, transparently
use Config::Merged; my $config = Config::Merged->load_files({ files => \@files, ... }); # or my $config = Config::Merged->load_stems({ stems => \@stems, ... });
Config::Merged is a subclass of Config::Any that returns a single, merged configuration structure. This is simply a re-implementation of Catalyst's merge_hashes() wrapped around Config::Any.
merge_hashes()
Similar to Config::Any's load_files() method except that a single, merged hash is returned.
load_files()
Similar to Config::Any's load_stems() method except that a single, merged hash is returned.
load_stems()
When using the flatten_to_hash option (as documented in Config::Any), the order of the configuration files cannot be guaranteed which may result in improper precedence during merging. It is recommended that this option never be used when using Config::Merged.
flatten_to_hash
jason hord <pravus@cpan.org>
Copyright (c) 2008-2014, jason hord
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Config::Merged, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Config::Merged
CPAN shell
perl -MCPAN -e shell install Config::Merged
For more information on module installation, please visit the detailed CPAN module installation guide.