perl-Config-YAML

perl-Config-YAML - Config-YAML - Simple configuration automation

Website: http://www.cpan.org
License: Artistic
Vendor: Shawn Boyette <mdxi@cpan.org>
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

perl-Config-YAML-1.42-1.src [12 KiB] Changelog by olea@lisergia.olea.org (2009-06-12):
- Initial build.
perl-Config-YAML-1.42-1.noarch [11 KiB] Changelog by olea@lisergia.olea.org (2009-06-12):
- Initial build.