Subject: | Fortune-0.2 documentation |
Date: | Mon, 24 Mar 2008 10:09:50 +0100 |
To: | bug-Fortune [...] rt.cpan.org |
From: | Matthieu Crapet <mcrapet [...] gmail.com> |
Greetings,
There is a small error in the manual page:
Fortune input
get_fortune (NUM)
Reads string number NUM from the open fortune file. NUM is
zero-based, ie. it must be between 0 and "num_fortunes()-1"
(inclusive). "croak"s if you haven't opened the file and
read the header, or if NUM is out of range. (Opening the file is
pretty hard to screw up, since it's taken care of for you by
the constructor, but you have to read the header explicitly with
"read_header()".) Returns the text of the fortune as a
(possibly) multiline string.
get_random_fortune ()
Picks a random fortune for you and reads it with
"read_fortune()".
It is not "get_fortune" but "read_fortune".
In the synopsis, the function name is correct.
Best regard.
Matthieu Crapet