NAME
Config::Loader - load a configuration directory tree containing YAML,
JSON, XML, Perl, INI or Config::General files
SYNOPSIS
OO style
-------------------------------------------------------
use Config::Loader();
my $config = Config::Loader->new('/path/to/config');
@hosts = $config->('db.hosts.session');
$hosts_ref = $config->('db.hosts.session');
@cloned_hosts = $config->clone('db.hosts.session');
-------------------------------------------------------
OR
Functional style
-------------------------------------------------------
# On startup
use Config::Loader('My::Config' => '/path/to/config');
# Then, in any module where you want to use the config
package My::Module;
use My::Config;
@hosts = C('db.hosts.sesssion');
$hosts_ref = C('db.hosts.sesssion');
@cloned_hosts = My::Config::clone('db.hosts.session');
$config = My::Config::object;
-------------------------------------------------------
EXAMPLES
See the examples/ directory. You need to do a 'make' before running
the examples.
THANKS
Thanks to Joel Bernstein and Brian Cassidy for the interface to the
various configuration modules.
AUTHOR
Clinton Gormley, <clinton@traveljury.com>
COPYRIGHT
Copyright (C) 2007 by Clinton Gormley
LICENSE
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.7 or, at
your option, any later version of Perl 5 you may have available.