Name : perl-Config-YAML
| |
Version : 1.42
| Vendor : Shawn Boyette < mdxi_cpan_org>
|
Release : 1
| Date : 2009-06-12 16:02:49
|
Group : Applications/CPAN
| Source RPM : perl-Config-YAML-1.42-1.src.rpm
|
Size : 0.02 MB
| |
Packager : Arix International < cpan2rpm_arix_com>
| |
Summary : 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;
|
RPM found in directory: /packages/linux-pbone/archive/olea.org/fedora-10/rss2twitter |