Bot::Infobot::Config - parse Bot::Infobot config files
use Bot::Infobot::Config qw(parse_config); my %config = parse_config('infobot.conf');
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 the config back out again.
Simon Wistow <simon@thegestalt.org>
Copyright 2005, Simon Wistow
Distributed under the same terms as Perl itself.
To install Bot::Infobot::Config, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bot::Infobot::Config
CPAN shell
perl -MCPAN -e shell install Bot::Infobot::Config
For more information on module installation, please visit the detailed CPAN module installation guide.