MetaStore::Config - Configuration file class.


MetaStore documentation  | view source Contained in the MetaStore distribution.

Index


NAME

Top

MetaStore::Config - Configuration file class.

SYNOPSIS

Top

    use MetaStore::Config;
    my $conf = new MetaStore::Config:: ( $opt{config} );
    my $value = $conf->general->{db_name};




DESCRIPTION

Top

Configuration file class

Format of INI-FILE

Data is organized in sections. Each key/value pair is delimited with an equal (=) sign. Sections are declared on their own lines enclosed in '[' and ']':

  [BLOCK1]
  KEY1 ?=VALUE1
  KEY2 +=VALUE2




  [BLOCK2]
  KEY1=VALUE1
  KEY2=VALUE2

  #%INCLUDE file.inc%

?= - set value unless it defined before += - add value = - set value to key #%INCLUDE file.inc% - include config ini file

SEE ALSO

Top

MetaStore, README

AUTHOR

Top

Zahatski Aliaksandr, <zag@cpan.org>

COPYRIGHT AND LICENSE

Top


MetaStore documentation  | view source Contained in the MetaStore distribution.