NAME
App::Magpie::Config - magpie configuration storage & retrieval
VERSION
version 2.010
SYNOPSIS
my $config = App::Magpie::Config->instance;
my $value = $config->get( $section, $key );
$config->set( $section, $key, $value );
DESCRIPTION
This module allows to store some configuration for magpie.
It implements a singleton responsible for automatic retrieving & saving of the various information. No check is done on sections and keys, so it's up to the caller to implement a proper config hierarchy.
METHODS
dump
my $str = $config->dump;
Return the whole content of the configuration file.
get
my $value = $config->get( $section, $key );
Return the value associated to $key
in the wanted $section
.
set
$config->set( $section, $key, $value );
Store the $value
associated to $key
in the wanted $section
.
AUTHOR
Jerome Quelin <jquelin@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.