BBS::Perm::Config - wrap a BBS::Perm configuration file
use BBS::Perm::Config; my $conf = BBS::Perm::Config->new( file => 'config.yml' ); my $setting = $conf->setting('newsmth'); my $file = $conf->file; my @sites = $conf->sites;
BBS::Perm::Config is a simple wrapper of the configuration file for BBS::Perm.
BBS::Perm's configuraton file is a normal YAML file. See t/config.yml for the cunstruct.
create a new BBS::Perm::Config module.
load $file, which is a YAML file.
return corresponding settings for $site;
return a list of our site names.
return config file name
sunnavy <sunnavy@gmail.com>
<sunnavy@gmail.com>
Copyright (c) 2007-2011, sunnavy <sunnavy@gmail.com>.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install BBS::Perm, copy and paste the appropriate command in to your terminal.
cpanm
cpanm BBS::Perm
CPAN shell
perl -MCPAN -e shell install BBS::Perm
For more information on module installation, please visit the detailed CPAN module installation guide.