---
name: "Config::Any::INI"
section: "3pm"
platform: "linux"
package: "libconfig-any-perl"
version: "0.33-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Config::Any::INI"
---

# Config::Any::INI(3pm)

Load INI config files

## NAME

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

## 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.

## 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;
  ```

## AUTHORS

Brian Cassidy \<bricas@cpan.org\>

Joel Bernstein \<rataxis@cpan.org\>

## COPYRIGHT AND LICENSE

Copyright 2006-2016 by Brian Cassidy, portions copyright 2006, 2007 by Joel Bernstein

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

## SEE ALSO

- •

  Catalyst

- •

  Config::Any

- •

  Config::Tiny
