BBS::UserInfo - Base class of BBS::UserInfo::XXX


BBS-UserInfo documentation Contained in the BBS-UserInfo distribution.

Index


Code Index:

NAME

Top

BBS::UserInfo - Base class of BBS::UserInfo::XXX

SYNOPSIS

Top

    use BBS::UserInfo;

    my $bot = BBS::UserInfo->new('Ptt', 'server' => 'ptt.cc');
    $bot->connect();
    my $data = $bot->query('username');
    print($data->{'logintimes'});

FUNCTIONS

Top

new()

AUTHOR

Top

Gea-Suan Lin, <gslin at gslin.org>

COPYRIGHT & LICENSE

Top


BBS-UserInfo documentation Contained in the BBS-UserInfo distribution.
package BBS::UserInfo;

use warnings;
use strict;

our $VERSION = '0.01';

sub new {
    my ($class, $style, @params) = @_;

    require(sprintf('BBS/UserInfo/%s.pm', $style));
    return "BBS::UserInfo::${style}"->new(@params);
}

1; # End of BBS::UserInfo