1Config::Any::INI(3) User Contributed Perl Documentation Config::Any::INI(3)
2
3
4
6 Config::Any::INI - Load INI config files
7
9 Loads INI files. Example:
10
11 name=TestApp
12
13 [Controller::Foo]
14 foo=bar
15
16 [Model::Baz]
17 qux=xyzzy
18
20 extensions( )
21 return an array of valid extensions ("ini").
22
23 load( $file )
24 Attempts to load $file as an INI file.
25
26 requires_all_of( )
27 Specifies that this module requires Config::Tiny in order to work.
28
30 $MAP_SECTION_SPACE_TO_NESTED_KEY (boolean)
31 This variable controls whether spaces in INI section headings will
32 be expanded into nested hash keys. e.g. it controls whether [Full
33 Power] maps to $config->{'Full Power'} or
34 $config->{'Full'}->{'Power'}
35
36 By default it is set to 1 (i.e. true).
37
38 Set it to 0 to preserve literal spaces in section headings:
39
40 use Config::Any;
41 use Config::Any::INI;
42 $Config::Any::INI::MAP_SECTION_SPACE_TO_NESTED_KEY = 0;
43
45 Brian Cassidy <bricas@cpan.org>
46
47 Joel Bernstein <rataxis@cpan.org>
48
50 Copyright 2006-2016 by Brian Cassidy, portions copyright 2006, 2007 by
51 Joel Bernstein
52
53 This library is free software; you can redistribute it and/or modify it
54 under the same terms as Perl itself.
55
57 • Catalyst
58
59 • Config::Any
60
61 • Config::Tiny
62
63
64
65perl v5.36.0 2023-01-20 Config::Any::INI(3)