Jump to letter:
9ABCDEFGHIJKLMNOPRSTUVWXYZ
perl-Config-YAML - Config-YAML - Simple configuration automation
- Description:
Config::YAML is a somewhat object-oriented wrapper around the YAML
module which makes reading and writing configuration files
simple. Handling multiple config files (e.g. system and per-user
configuration, or a gallery app with per-directory configuration) is a
snap.
use Config::YAML;
my $c = Config::YAML->new( config => "/usr/share/foo/globalconf",
output => "~/.foorc",
param1 => value1,
param2 => value2,
...
paramN => valueN,
);
$c->read("~/.foorc");
$rc = GetOptions ( $c,
'param1|p!',
'param2|P',
'paramN|n',
);
$c->write;
do_something() unless $c->{param1};
my $value = $c->get_param2;
Packages