YAMC - Yast Another Configuration Module
use YAMC; my $yamc = new YAMC(); $yamc->fileName('/home/dexter/my.yml'); my $hash = $yamc->Read(); my $value = $yamc->get('key')
YAMC is Perl extension for express use of YAML for configuration, in simpre and quickly mode. The YAMC contains everything you need for access to configuration files written in YAML
This is the setter for full file name for yml config file. Parameters fileName: file name complete with path
This is the setter for hash with configuration. Parameters hash: The hash conteins configuration.
This is the method for reading configuration, the file name of configuration file mast be specified in fileName setter. The return value is an hash with all configuration.
This is the method for writing configuration, the file name of configuration file mast be specified in fileName setter and the hash mast be specified in hash setter.
This method is same to save, but have another parameters for specify another path for backup.
This is method for get an specify element Parameters Key: The Key of element Returns Value marked by key.
This is method for Add an new element Parameters Key: The Key of element Value: The value
This is method for Replace an element Parameters Key: The Key of element Value: The value
This is method for Remove an element Parameters Key: The Key of element
This is method for Print the hash
See YAML documentetion for YAML specification
Mailing list <firstname.lastname@example.org>
Copyright (C) 2013 by apioli
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.2 or, at your option, any later version of Perl 5 you may have available.