Fortune::WWW::Postillion - Get fortune cookies from http://www.der-postillion.com!
Fortune::WWW::Postillion gives you fortune cookies from the newsticker archive of the webside
use Fortune::WWW::Postillion 'cookie'; my $random_cookie = cookie(); my $third_cookie = cookie(3);
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
<Caldrin at cpan dot org>
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.
You can find documentation for this module with the perldoc command.
You can also look for information at:
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.