Config::INI

parse standard configuration files (.ini files)

NAME

Config::INI - parse standard configuration files (.ini files)

SYNOPSIS

use Config::INI;
my %hash = Config::INI::parse_file('config.ini');
#or
%hash = Config::INI::parse($file_contents);
say %hash<_><root_property_key>;
say %hash<section><in_section_key>;

DESCRIPTION

This module provides 2 functions: parse() and parse_file(), both taking one Str argument, where parse_file is just parse(slurp $file). Both return a hash which keys are either toplevel keys or a section names. For example, the following config file:

foo=bar
[section]
another=thing

would result in the following hash:

{ '_' => { foo => "bar" }, section => { another => "thing" } }

AUTHORS

Tadeusz Soƛnierz

Nobuo Danjou

COPYRIGHT AND LICENSE

Copyright 2010 - 2017 Tadeusz Soƛnierz

Copyright 2024 Raku Community

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.

Config::INI v1.2

parse standard configuration files (.ini files)

Authors

  • Tadeusz Soƛnierz
  • Nobuo Danjou

License

NOASSERTION

Dependencies

Test Dependencies

Provides

  • Config::INI
  • Config::INI::Writer

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.