Config::Parser and Config::Parser::Ini
======================================
Config::Parser provides a framework for writing configuration file
parsers. It is an intermediate layer between the abstract syntax tree
(Config::AST) and implementation of a parser for a particular
configuration file format.
Config::Parser::Ini is a configuration file parser for ini-style files.
EXAMPLE
use Config::Parser::Ini;
# Parse the configuration
my $cf = new Config::Parser::Ini(filename => "config.ini");
# Access a configuration setting
print $cf->get('core', 'root');
__DATA__
# Declare valid keywords:
[core]
root = STRING :default /
umask = OCTAL
[user]
uid = NUMBER
gid = NUMBER
INSTALLATION
To install this module type the following:
perl Makefile.PL
make
make test
make install
COPYRIGHT AND LICENCE
Copyright (C) 2018-2019 by Sergey Poznyakoff
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3 of the License, or (at your
option) any later version.
It is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this library. If not, see <
http://www.gnu.org/licenses/>.