logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Config::Any::INI - Load INI config files

Authors

       Brian Cassidy <bricas@cpan.org>

       Joel Bernstein <rataxis@cpan.org>

Description

       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.

Name

       Config::Any::INI - Load INI config files

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;

See Also

       •   Catalyst

       •   Config::Any

       •   Config::Tiny

perl v5.36.0                                       2023-06-26                              Config::Any::INI(3pm)

See Also