<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">NAME
    Config::Dot - Module for simple configure file parsing.

SYNOPSIS
     my $cnf = Config::Dot-&gt;new(%params);
     my $struct_hr = $cnf-&gt;parse($string);
     $cnf-&gt;reset;
     my $serialized = $cnf-&gt;serialize;

METHODS
    new(%params)
             Constructor.

            *       config

                     Reference to hash structure with default config data.
                     This is hash of hashes structure.
                     Default value is reference to blank hash.

            *       set_conflicts

                     Set conflicts detection as error.
                     Default value is 1.

    parse($string_or_array_ref)
            Parse string $string_or_array_ref or reference to array
            $string_or_array_ref and returns hash structure.

    reset() Reset content in class (config parameter).

    serialize()
            Serialize 'config' hash to output.

PARAMETER_FILE
     # Comment.
     # blabla

     # White space.
     /^\s*$/

     # Parameters.
     # Key must be '[-\w\.:,]+'.
     # Separator is '='.
     key=val
     key2.subkey.subkey=val

ERRORS
     Mine:
             Bad 'config' parameter.

     From Config::Utils::conflict():
             Conflict in '%s'.

     From Class::Utils::set_params():
             Unknown parameter '%s'.

EXAMPLE1
     # Pragmas.
     use strict;
     use warnings;

     # Modules.
     use Config::Dot;
     use Dumpvalue;

     # Object.
     my $struct_hr = Config::Dot-&gt;new-&gt;parse(&lt;&lt;'END');
     key1=value1
     key2=value2
     key3.subkey1=value3
     END

     # Dump
     my $dump = Dumpvalue-&gt;new;
     $dump-&gt;dumpValues($struct_hr);

     # Output:
     # 0  HASH(0x84b98a0)
     #    'key1' =&gt; 'value1',
     #    'key2' =&gt; 'value2',
     #    'key3' =&gt; HASH(0x8da3ab0)
     #       'subkey1' =&gt; 'value3',

EXAMPLE2
     # Pragmas.
     use strict;
     use warnings;

     # Modules.
     use Config::Dot;

     # Object with data.
     my $c = Config::Dot-&gt;new(
             'config' =&gt; {
                     'key1' =&gt; {
                             'subkey1' =&gt; 'value1',
                     },
                     'key2' =&gt; 'value2',
             },
     );

     # Serialize.
     print $c-&gt;serialize."\n";

     # Output:
     # key1=subkey1.value1
     # key2=value2

DEPENDENCIES
    Class::Utils, Config::Utils, English, Error::Pure, Readonly.

SEE ALSO
    Config::Utils.

AUTHOR
    Michal ﾅ�paﾄ稿k &lt;mailto:skim@cpan.org&gt;

    &lt;http://skim.cz&gt;

LICENSE AND COPYRIGHT
    BSD license.

VERSION
    0.01

</pre></body></html>