Jerome Quelin > WWW-DaysOfWonder-Memoir44-2.120510 > WWW::DaysOfWonder::Memoir44::DB::Params

Download:
WWW-DaysOfWonder-Memoir44-2.120510.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 2.120510   Source   Latest Release: WWW-DaysOfWonder-Memoir44-3.000

NAME ^

WWW::DaysOfWonder::Memoir44::DB::Params - various runtime params

VERSION ^

version 2.120510

SYNOPSIS ^

    my $params = WWW::DaysOfWonder::Memoir44::DB::Params->instance;
    my $value  = $params->get( $key );
    $params->set( $key, $value );

DESCRIPTION ^

This module allows to store various runtime parameters.

It implements a singleton responsible for automatic retrieving & saving of the various information. Each module gets its own section, so keys won't be over-written if sharing the same name accross package.

METHODS ^

get

    my $value = $params->get( $key );

Return the value associated to $key in the wanted section.

set

    $params->set( $key, $value );

Store the $value associated to $key in the wanted section.

AUTHOR ^

Jerome Quelin

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2009 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.

syntax highlighting: