The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Config::Merged - Load and merge configuration from different file formats, transparently

SYNOPSIS

  use Config::Merged;

  my $config = Config::Merged->load_files({ files => \@files, ... });

  # or

  my $config = Config::Merged->load_stems({ stems => \@stems, ... });

DESCRIPTION

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.

METHODS

load_files( \%args )

Similar to Config::Any's load_files() method except that a single, merged hash is returned.

load_stems( \%args )

Similar to Config::Any's load_stems() method except that a single, merged hash is returned.

BUGS

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.

AUTHOR

jason hord <pravus@cpan.org>

SEE ALSO

Config::Any

COPYRIGHT

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.