Config::Locale

Load and merge locale-specific configuration files
Download

Config::Locale Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Aran Clary Deltac
  • Publisher web site:
  • http://search.cpan.org/~bluefeet/

Config::Locale Tags


Config::Locale Description

Config::Locale is a Perl module that takes an identity array, determines the permutations of the identity using Algorithm::Loops, loads configuration files using Config::Any, and finally combines the configurations using Hash::Merge.So, given this setup: Config::Locale->new( identity => , suffix => '.yml', );The following configuration files will be looked for (listed from least specific to most): default.yml all.all.qa.yml all.1.all.yml all.1.qa.yml db.all.all.yml db.all.qa.yml db.1.all.yml db.1.qa.ymlFor each file found the contents will be parsed and then merged together to produce the final configuration hash. The hashes will be merged so that the most specific configuration file will take precedence over the least specific files. So, in the example above, "db.1.qa.yml" values will overwrite values from "default.yml".SYNOPSIS use Config::Locale; my $locale = Config::Locale->new( identity => , directory => '/path/to/configs/', ); my $config = $locale->config();Product's homepage


Config::Locale Related Software