Zahatski Aliaksandr > WebDAO-2.14 > WebDAO::Config

Download:
WebDAO-2.14.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Module Version: 0.3   Source  

NAME ^

WebDAO::Config - Configuration file class.

SYNOPSIS ^

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

DESCRIPTION ^

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 ^

WebDAO, README

AUTHOR ^

Zahatski Aliaksandr, <zag@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright (C) 2006-2011 by Zahatski Aliaksandr

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.

syntax highlighting: