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


WWW-DaysOfWonder-Memoir44 documentation  | view source Contained in the WWW-DaysOfWonder-Memoir44 distribution.

Index


NAME

Top

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

VERSION

Top

version 2.110310

SYNOPSIS

Top

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

DESCRIPTION

Top

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

Top

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

Top

  Jerome Quelin

COPYRIGHT AND LICENSE

Top


WWW-DaysOfWonder-Memoir44 documentation  | view source Contained in the WWW-DaysOfWonder-Memoir44 distribution.