Maik Hentsche

NAME

Fortune::WWW::Postillion - Get fortune cookies from http://www.der-postillion.com!

VERSION

SYNOPSIS

Fortune::WWW::Postillion gives you fortune cookies from the newsticker archive of the webside http://www.der-postillion.com.

    use Fortune::WWW::Postillion 'cookie';


    my $random_cookie = cookie();
    my $third_cookie  = cookie(3);

EXPORT

SUBROUTINES

Get a new fortune cookie. You can either request a random cookie or give a number n and the module will try to return the nth element of the cookie list. The number is used modulo the number of elements in the cookie jar. So if you ask for the 5th cookie in a 4 element jar, you will get the first one.

@param int - number of element in news list

@return success - string @return error - exception

@throws die()

AUTHOR

Maik Hentsche, <Caldrin at cpan dot org>

BUGS

Please report any bugs or feature requests to bug-fortune-www-postillion at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Fortune-WWW-Postillion. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Fortune::WWW::Postillion

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2012 Maik Hentsche.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.