GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Text::Lorem(3) User Contributed Perl Documentation Text::Lorem(3)

Text::Lorem - Generate random Latin looking text

    use Text::Lorem;

    my $text = Text::Lorem->new();

    # Generate a string of text with 5 words
    $words = $text->words(5);

    # Generate a list of 5 words
    @words = $text->words(5);

    # Generate a string of text with 2 sentences
    $sentences = $text->sentences(2);

    # Generate a list of 2 sentences
    @sentences = $text->sentences(2);

    # Generate a string of text with 3 paragraphs
    $paragraphs = $text->paragraphs(3);

    # Generate a list of 3 paragraphs
    @paragraphs = $text->paragraphs(3);

Often when developing a website or other application it's important to have placeholders for content. This module generates prescribed amounts of fake Latin text.

"new()"
The default constructor, "new()" takes no arguments and returns a Text::Lorem object.

All methods below will return a string in scalar context or list in list context.
"words( INTEGER )"
Returns INTEGER fake Latin words.
"sentences( INTEGER )"
Returns INTEGER sentences in fake Latin.
"paragraphs( INTEGER )"
Returns INTEGER paragraphs of fake Latin text.

Thanks to the guys who pushed me off the cliff called comfort and into the scary world of Perl: James Duncan, Leon Brocard.

Adeola Awoyemi (adeola@cpan.org)

  L<WWW::Lipsum> and L<http://lipsum.com/>

Copyright (c) 2003 by Adeola Awoyemi. This software is released under the same license as Perl itself.
2021-02-25 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.