The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

DESCRIPTION

There is a plenty of configuration readers/parsers floating around, Config::Merge is not trying to be another one. It helps you to merge various configuration sources so you get the final configuration structure based on predefined order of precedence.

Config::Merge defines three types of configuration source (in order of precedence from lowest to higest): default, file, and custom.

default

Configuration of type default contains predefined values for parameters. It's meant to be overridden by other source of configuration. Whenever a parameter exists in other source, then the value in the default one will be replaced. You should set your complete parameters in default type.

file

Configuration of type file comes from a file defined by the user of the application. In standard operation, each parameter with defined value will override corresponding parameter in the default type.

custom

Custom configuration comes from other sources than default and file. In standard operation it holds the highest precedence over the others. It's meant to temporarily set certain parameters in certain condition.

Please take a look at the documentation for full details. After installation you can access it using the perldoc(1) program,

    perldoc Config::Merge

INSTALLATION

To install this module type the following:

   perl Makefile.PL
   make
   make test
   make install

Of course after you download and unpack the distribution.

Alternatively, you can use CPAN.pm from the command line,

    perl -MCPAN -e 'install Config::Merge'

If for any reason that the installation process doesn't go well, just copy the Merge.pm file from the source directory to your Perl modules directory (either in the standard location, but you may need sufficient privilege to do that; or, to your private ones).

COPYRIGHT AND LICENCE

Copyright 2003 by Hasanuddin Tamir <hasan@cpan.org>. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

I highly appreciate any feedback, even a single comment, about this module.