Acme::Magic8Ball - ask the Magic 8 Ball a question
use Acme::Magic8Ball qw(ask); my $reply = ask("Is this module any use whatsoever?");
... you can also pass in your own list of answers ...
my $reply = ask("What should the next bit be?", 0, 1); # reply will always be 0 or 1
... or make answers consistent ...
use Acme::Magic8Ball qw(ask :consistent); for (0..1000) { my $reply = ask("Is this module any use whatsoever?"); # reply will always be the same }
This is an almost utterly pointless module. But I needed it. So there.
Ask and ye shall receive!
If you don't pass in an array of answers it will use the traditional ones.
Simon Wistow <simon@thegestalt.org>
Copyright 2005, Simon Wistow
Distributed under the same terms as Perl itself.
You can get the latest version from
https://github.com/simonwistow/Acme-Magic8Ball
The 8 Ball FAQ - http://8ball.ofb.net/faq.html
Mattel (who own the 8 Ball) - http://www.mattel.com
To install Acme::Magic8Ball, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Acme::Magic8Ball
CPAN shell
perl -MCPAN -e shell install Acme::Magic8Ball
For more information on module installation, please visit the detailed CPAN module installation guide.