NAME

BBS::Perm::Config - wrap a BBS::Perm configuration file

VERSION

This document describes BBS::Perm::Config version 0.0.1

SYNOPSIS

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;

DESCRIPTION

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.

INTERFACE

new ( file => $file )

create a new BBS::Perm::Config module.

load( $file )

load $file, which is a YAML file.

setting ( $site )

return corresponding settings for $site;

sites

return a list of our site names.

file

return config file name

DEPENDENCIES

YAML, YAML::Syck, version

INCOMPATIBILITIES

None reported.

BUGS AND LIMITATIONS

No bugs have been reported.

AUTHOR

sunnavy <sunnavy@gmail.com>

LICENCE AND COPYRIGHT

Copyright (c) 2007, sunnavy <sunnavy@gmail.com>. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.