| 1 |
NAME |
| 2 |
Text::Lorem - Generate random Latin looking text |
| 3 |
|
| 4 |
SYNOPSIS |
| 5 |
use Text::Lorem; |
| 6 |
|
| 7 |
my $text = Text::Lorem->new(); |
| 8 |
|
| 9 |
# Generate a string of text with 5 words |
| 10 |
$words = $text->words(5); |
| 11 |
|
| 12 |
# Generate a list of 5 words |
| 13 |
@words = $text->words(5); |
| 14 |
|
| 15 |
# Generate a string of text with 2 sentences |
| 16 |
$sentences = $text->sentences(2); |
| 17 |
|
| 18 |
# Generate a list of 2 sentences |
| 19 |
@sentences = $text->sentences(2); |
| 20 |
|
| 21 |
# Generate a string of text with 3 paragraphs |
| 22 |
$paragraphs = $text->paragraphs(3); |
| 23 |
|
| 24 |
# Generate a list of 3 paragraphs |
| 25 |
@paragraphs = $text->paragraphs(3); |
| 26 |
|
| 27 |
DESCRIPTION |
| 28 |
Often when developing a website or other application it's important to |
| 29 |
have placeholders for content. This module generates prescribed amounts |
| 30 |
of fake Latin text. |
| 31 |
|
| 32 |
CONSTRUCTOR |
| 33 |
"new()" |
| 34 |
The default constructor, "new()" takes no arguments and returns a |
| 35 |
Text::Lorem object. |
| 36 |
|
| 37 |
METHODS |
| 38 |
All methods below will return a string in scalar context or list in list |
| 39 |
context. |
| 40 |
|
| 41 |
"words( INTEGER )" |
| 42 |
Returns INTEGER fake Latin words. |
| 43 |
|
| 44 |
"sentences( INTEGER )" |
| 45 |
Returns INTEGER sentences in fake Latin. |
| 46 |
|
| 47 |
"paragraphs( INTEGER )" |
| 48 |
Returns INTEGER paragraphs of fake Latin text. |
| 49 |
|
| 50 |
THANKS |
| 51 |
Thanks to the guys who pushed me off the cliff called comfort and into |
| 52 |
the scary world of Perl: James Duncan, Leon Brocard. |
| 53 |
|
| 54 |
AUTHOR |
| 55 |
Adeola Awoyemi ([email protected]) |
| 56 |
|
| 57 |
SEE ALSO |
| 58 |
L<WWW::Lipsum> and L<http://lipsum.com/> |
| 59 |
|
| 60 |
COPYRIGHT |
| 61 |
Copyright (c) 2003 by Adeola Awoyemi. |
| 62 |
This software is released under the same license as Perl itself. |
| 63 |
|