Simon Wistow > Bot-Infobot-1.0 > Bot::Infobot::Config

Download:
Bot-Infobot-1.0.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

Bot::Infobot::Config - parse Bot::Infobot config files

SYNOPSIS ^

        use Bot::Infobot::Config qw(parse_config);

        my %config = parse_config('infobot.conf');

METHODS ^

parse_config <config file>

Returns a hash of config values.

Sub parts are in sub hashes. For example

        foo = bar;

        [ Sub ]
        quirka = fleeg

would be converted to

        (
           'foo' => 'bar',
           'sub' => {
                        'quirka' => 'fleeg',
                    }
        )

save_config <file> <hash of values>

Save the config back out again.

AUTHOR ^

Simon Wistow <simon@thegestalt.org>

COPYRIGHT ^

Copyright 2005, Simon Wistow

Distributed under the same terms as Perl itself.

syntax highlighting: