AppConfig::Exporter

Allow modules to import AppConfig sections from a shared configuration
Download

AppConfig::Exporter Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Ben H. Kram
  • Publisher web site:
  • http://search.cpan.org/~modulo/

AppConfig::Exporter Tags


AppConfig::Exporter Description

Allow modules to import AppConfig sections from a shared configuration AppConfig::Exporter is Perl module intended to be subclassed to specify your configuration file and any options. Then, you can request a hash of any section from the configuration file by specifying it as a symbol to be imported in the use statement: # myfile.conf oranges = 'tasty' apples = 'sweet' # some code elsewhere... use MyConfig qw(fruit); print "$fruit{oranges}!"; # tasty! my $appconfig = MyConfig->AppConfig;SYNOPSIS package MyConfig; use base qw( AppConfig::Exporter ); __PACKAGE__->configure( Config_File => 'myfile.conf', AppConfig_Options => { CASE => 0 }, AppConfig_Define => { Fun_Pickles => {ARGCOUNT => ARGCOUNT_LIST} } ); 1; Requirements: · Perl


AppConfig::Exporter Related Software