Config::Any::INI(3pm)

Config::Any::INI3pm

Load ini config files

Overview

Loads INI files. Example:

    name=TestApp
    [Controller::Foo]
    foo=bar
    [Model::Baz]
    qux=xyzzy

Methods

extensions( )

return an array of valid extensions ("ini").

load( $file )

Attempts to load $file as an INI file.

requires_all_of( )

Specifies that this module requires Config::Tiny in order to work.

Package variables

$MAP_SECTION_SPACE_TO_NESTED_KEY (boolean)

This variable controls whether spaces in INI section headings will be expanded into nested hash keys. e.g. it controls whether [Full Power] maps to $config->{'Full Power'} or $config->{'Full'}->{'Power'}

By default it is set to 1 (i.e. true).

Set it to 0 to preserve literal spaces in section headings:

    use Config::Any;
    use Config::Any::INI;
    $Config::Any::INI::MAP_SECTION_SPACE_TO_NESTED_KEY = 0;

Releases

10 releases since Debian 4.0 (Etch); the text changed 8 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9
  7. 10–11
  8. 12
  9. 13