Text::Lorem(3pm)

Text::Lorem3pm

Generate random latin looking text

Usage

    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);

Overview

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.

Constructor

"new()"

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

Methods

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

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

Releases

7 releases since Debian 7 (Wheezy); the text changed 3 times.

  1. 7–8
  2. 9–10
  3. 11
  4. 12–13

Author

Adeola Awoyemi ([email protected])

From libtext-lorem-perl 0.34-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.