NAME
YACM - Yast Another Configuration Module
SYNOPSIS
use YACM;
my $yacm = new YAMC();
$yacm->fileName('/home/dexter/my.yml');
my $hash = $yacm->Read();
my $value = $yacm->get('key')
DESCRIPTION
YACM is Perl extension for express use of YAML for configuration, in simpre and quickly mode.
The YACM contains everything you need for access to configuration files written in YAML
EXPORT
new
The constructor
fileName
This is the setter for full file name for yml config file.
Parameters
fileName: file name complete with path
hash
This is the setter for hash whit configuration.
Parameters
hash: The hash conteins configuration.
Read
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.
Save
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.
SaveTo
This method is same to save, but have another parameters for specify another path for backup.
Get
This is method for get an specify element
Parameters
Key: The Key of element
Returns
Value marked by key.
Add
This is method for Add an new element
Parameters
Key: The Key of element
Value: The value
Replace
This is method for Replace an element
Parameters
Key: The Key of element
Value: The value
Remove
This is method for Remove an element
Parameters
Key: The Key of element
SEE ALSO
See YAML documentetion for YAML specification
Mailing list <yamc-mail@googlegroups.com>
AUTHOR
apioli, <apioli@cpan.org>
COPYRIGHT AND LICENSE
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.