The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Meta::Projects::Fortune::Fortune - provide fortune services.

COPYRIGHT

Copyright (C) 2001, 2002 Mark Veltzer; All rights reserved.

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.

DETAILS

        MANIFEST: Fortune.pm
        PROJECT: meta
        VERSION: 0.02

SYNOPSIS

        package foo;
        use Meta::Projects::Fortune::Fortune qw();
        my($fortune)=Meta::Projects::Fortune::Fortune->new([connection data]);
        my($random_fortune)=$fortune->random();

DESCRIPTION

This class provides fortune services. Examples are providing you with a random fortune saying, providing you with a fortune saying under a specific category etc...

FUNCTIONS

        new($$$$)
        random($)
        random_cat($$)
        TEST($)

FUNCTION DOCUMENTATION

new($$$$)

This is a constructor for the Meta::Projects::Fortune::Fortune object. Data to make a connection need to be supplied.

random($)

Provide a random fortune saying.

random_cat($$)

Provide you with a random fortune saying out of a specific category.

TEST($)

This is a testing suite for the Meta::Projects::Fortune::Fortune module. This test is should be run by a higher level management system at integration or release time or just as a regular routine to check that all is well.

SUPER CLASSES

None.

BUGS

None.

AUTHOR

        Name: Mark Veltzer
        Email: mailto:veltzer@cpan.org
        WWW: http://www.veltzer.org
        CPAN id: VELTZER

HISTORY

        0.00 MV finish papers
        0.01 MV teachers project
        0.02 MV md5 issues

SEE ALSO

Meta::Db::Connections(3), Meta::Db::Dbi(3), Meta::Development::Module(3), strict(3)

TODO

-prepare the statements in the constructor.

-start using Class::DBI instead of doing SQL stuff here.