Config::General 2.31 review
DownloadConfig::General is a perl module opens a config file and parses it's contents for you
|
|
Config::General is a perl module opens a config file and parses it's contents for you.
Config::General library provides variable interpolation, saving of configs (kinda serializer), an OOP-Interface and much more.
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(read-only), but you can also just use simple name/value pairs in your config files.
In addition to the capabilities of an apache config file it supports some enhancements such as here-documents, C-style comments or multiline options.
Installation:
To install, type:
perl Makefile.PL
make
make test
make install
To read the complete documentation, type:
perldoc Config::General
perldoc Config::General::Extended
perldoc Config::General::Interpolated
See some example config files which can be parsed with Config::Genreal in the subdirectory t/cfg.*
What's New in This Release:
applied patches by Jason Rhinelander: o bugfix: multiple levels if include files didn't work properly.
new option -IncludeDirectories, which allows to include all files of a directory. The directory must be specified by -ConfigFile as usual.
new option -IncludeGlob, which allows to use globs (wildcards) to include multiple files.
-ConfigPath can be speciefied using a single scalar value instead of an array if there is only one path.
bugfix: quotes from quoted block names were not removed properly.
fixes and updates for tests (make test) for the above patches. Thanks a lot Jason.
fixed number of tests in run.t
applied suggestion by Eric Kisiel: ::Extended::keys() returns an empty hash if the referring object is not hash.
fixed bug #14770, "Use of uninitialized value.." during environment variable interpolation.
Config::General 2.31 keywords