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.