INI

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" } }

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