NAME

YAMC - Yast Another Configuration Module

SYNOPSIS

use YAMC;
my $yamc = new YAMC();
$yamc->fileName('/home/dexter/my.yml');
my $hash = $yamc->Read();
my $value = $yamc->get('key')

DESCRIPTION

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

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 with 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(filename)

This method is same to save, but have another parameters for specify another path for backup.

Get(key)

This is method for get an specify element
Parameters
	Key: The Key of element
Returns
	Value marked by key.

Add(key,value)

	This is method for Add an new element
	Parameters
		Key: The Key of element
		Value: The value
 

Replace(key,value)

	This is method for Replace an element
	Parameters
		Key: The Key of element
		Value: The value
 

Remove(key)

This is method for Remove an element
Parameters
	Key: The Key of element
	 

Print()

This is method for Print the hash
	 

SEE ALSO

See YAML documentetion for YAML specification

Mailing list <yamc-mail@googlegroups.com>

Forum

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.