Games::Pandemic::Config - local configuration for Games::Pandemic
version 0.6.0
use Games::Pandemic::Config; my $config = Games::Pandemic::Config->instance; my $width = $config->get( 'canvas_width' );
This module implements a basic persistant configuration, using key / value pairs.
The module itself is implemented as a singleton, available with the instance() class method.
instance()
Return the $value associated to $key in the configuration. Note that if there's no local configuration defined, a default will be provided.
$value
$key
Jerome Quelin
This software is Copyright (c) 2009 by Jerome Quelin.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
To install Games::Pandemic, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::Pandemic
CPAN shell
perl -MCPAN -e shell install Games::Pandemic
For more information on module installation, please visit the detailed CPAN module installation guide.