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


Bot-Infobot documentation  | view source Contained in the Bot-Infobot distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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

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




METHODS

Top

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

Top

Simon Wistow <simon@thegestalt.org>

COPYRIGHT

Top


Bot-Infobot documentation  | view source Contained in the Bot-Infobot distribution.