2.01 - added -ConfigFile (in replace for -file) and

-ConfigHash (in replace for -hash) to get a consistent
	   parameter naming scheme. The old names are still
	   supported for backward compatibility, but no more
	   documented.

         - the parameter -BaseHash has been dropped because
	   -DefaultConfig already has the capabilities of
           defining a custom backing hash. The pod section for
	   -DefaultConfig has been enhanced to reflect this.

	 - README changed something. Removed the 'small' keyword,
	   because the module isn't really small anymore :-)
	   At least IMHO.


git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@27 be1acefe-a474-0410-9a34-9b3221f2030f
This commit is contained in:
Thomas von Dein
2009-10-10 16:20:41 +00:00
parent 76502a240e
commit d50bae5acf
3 changed files with 47 additions and 43 deletions

25
README
View File

@@ -3,27 +3,30 @@ NAME
SYNOPSIS
use Config::General;
$conf = new Config::General("rcfile");
$conf = new Config::General(-ConfigFile => "myconfig.rc");
my %config = $conf->getall;
DESCRIPTION
This small module opens a config file and parses it's
contents for you. The new method requires one parameter
which needs to be a filename. The method getall returns a
hash which contains all options and it's associated values
of your config file.
This module opens a config file and parses it's contents
for you. After parsing the module returns a hash structure
which contains the representation of the config file.
The format of config files supported by Config::General is
inspired by the well known apache config format, in fact,
this module is 100% compatible to apache configs, but you
can also just use simple name/value pairs in your config
this module is 100% read-compatible to apache configs, but
you can also just use simple name/value pairs in your config
files.
In addition to the capabilities of an apache config file
In addition to the capabilities of a apache config file
it supports some enhancements such as here-documents, C-
style comments or multiline options.
style comments or multiline options. It is also possible to
save the config back to disk, which makes the module a
perfect backend for configuration interfaces.
It is possible to use variables in config files and there
exists also support for object oriented access to the
configuration.
INSTALLATION
@@ -65,4 +68,4 @@ AUTHOR
VERSION
1.36
2.01