README
1Config::Parser and Config::Parser::Ini
2======================================
3
4Config::Parser provides a framework for writing configuration file
5parsers. It is an intermediate layer between the abstract syntax tree
6(Config::AST) and implementation of a parser for a particular
7configuration file format.
8
9Config::Parser::Ini is a configuration file parser for ini-style files.
10
11EXAMPLE
12
13 use Config::Parser::Ini;
14 # Parse the configuration
15 my $cf = new Config::Parser::Ini(filename => "config.ini");
16 # Access a configuration setting
17 print $cf->get('core', 'root');
18
19 __DATA__
20 # Declare valid keywords:
21 [core]
22 root = STRING :default /
23 umask = OCTAL
24 [user]
25 uid = NUMBER
26 gid = NUMBER
27
28INSTALLATION
29
30To install this module type the following:
31
32 perl Makefile.PL
33 make
34 make test
35 make install
36
37COPYRIGHT AND LICENCE
38
39Copyright (C) 2018-2019 by Sergey Poznyakoff
40
41This library is free software; you can redistribute it and/or modify it
42under the terms of the GNU General Public License as published by the
43Free Software Foundation; either version 3 of the License, or (at your
44option) any later version.
45
46It is distributed in the hope that it will be useful,
47but WITHOUT ANY WARRANTY; without even the implied warranty of
48MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
49GNU General Public License for more details.
50
51You should have received a copy of the GNU General Public License along
52with this library. If not, see <http://www.gnu.org/licenses/>.
53
54
55
56