App::Magpie::Config - magpie configuration storage & retrieval
version 2.010
my $config = App::Magpie::Config->instance; my $value = $config->get( $section, $key ); $config->set( $section, $key, $value );
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.
my $str = $config->dump;
Return the whole content of the configuration file.
my $value = $config->get( $section, $key );
Return the value associated to $key in the wanted $section.
$key
$section
$config->set( $section, $key, $value );
Store the $value associated to $key in the wanted $section.
$value
Jerome Quelin <jquelin@gmail.com>
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.
To install App::Magpie, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Magpie
CPAN shell
perl -MCPAN -e shell install App::Magpie
For more information on module installation, please visit the detailed CPAN module installation guide.