Games::Risk::Config - prisk configuration
version 3.112690
use Games::Risk::Config; my $config = Games::Risk::Config->instance; my $val = $config->get( "foo.bar.baz" ); $config->set( "foo.bar.baz", 42 ); $config->save;
This module implements a basic persistant configuration. The configuration is storead as YAML, yet keys are flattened using dots - eg, a foo.bar.baz key will fetch at depth 3.
foo.bar.baz
$config->save;
Save $config to its on-disk file.
$config
my $value = $config->get( $key );
Return the $value associated to $key in $config.
$value
$key
$config->set( $key, $value );
Associate a given $value to a $key in $config.
Jerome Quelin
This software is Copyright (c) 2008 by Jerome Quelin.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
To install Games::Risk, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::Risk
CPAN shell
perl -MCPAN -e shell install Games::Risk
For more information on module installation, please visit the detailed CPAN module installation guide.