Config::Any::INI(3)

πŸŽ€ Config::Any::INI(3) β€” the INI loader bestie πŸŽ€

okay so this is the Config::Any::INI(3) manual page from the User Contributed Perl Documentation, and it's literally all about loading INI config files, no cap πŸ’–


🌸 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 β€” for this module that's "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. Like, no Config::Tiny, no party 🫢

πŸŽ›οΈ 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 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

okay bye bestie πŸ’… β€” footer vibes: perl v5.42.0, dated 2023-05-04, and it's still Config::Any::INI(3) energy πŸ’–

πŸ“¦ where this page comes from