NAME
MToken::Config - MToken local configuration
VERSION
Version 1.03
SYNOPSIS
use MToken::Config;
my $config = MToken::Config->new(
    file => '/my/device/mtoken.conf',
    name => 'foo', # Optional. See device config file first
);
my $foo = $config->get('foo');
my $foo = $config->set('foo' => 'bar');
my $status = $config->save(); # Local file only
DESCRIPTION
The module works with the local configuration data
METHODS
- new
 - 
my $config = WWW::MLite::Config->new( file => '/my/device/mtoken.conf', name => 'foo', # Optional. See device config file first );Returns configuration object
 - get
 - 
my $value = $config->get( 'key' );Returns value by keyname
 - getall, conf, config
 - 
my %config = $config->getall;Returns all configuration pairs - key and value
 - is_loaded
 - 
print $self->is_loaded ? 'loaded' : 'not loaded';Returns status of local config
 - set
 - 
$config->set( 'key', $value );Set new value for key. Returns status of the operation
 - save
 - 
$config->save;Save current configuration to local_file and returns status of the operation
 
HISTORY
See Changes file
AUTHOR
Serż Minus (Sergey Lepenkov) http://www.serzik.com <abalama@cpan.org>
COPYRIGHT
Copyright (C) 1998-2021 D&D Corporation. All Rights Reserved
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See LICENSE file and https://dev.perl.org/licenses/