Data::Maker::Field::Lorem - A L field class that uses L to generate random Latin-looking text, given a number of words, sentences or paragraphs.


Data-Maker documentation  | view source Contained in the Data-Maker distribution.

Index


NAME

Top

Data::Maker::Field::Lorem - A Data::Maker field class that uses Text::Lorem to generate random Latin-looking text, given a number of words, sentences or paragraphs.

SYNOPSIS

Top

  use Data::Maker;
  use Data::Maker::Field::Lorem;

  my $maker = Data::Maker->new(
    record_count => 10,
    fields => [
      {
        name => 'lorem',
        class => 'Data::Maker::Field::Lorem',
        args => {
          words => 4
        }
      }
    ]
  );

DESCRIPTION

Top

Data::Maker::Field::Lorem takes any of the following arguments, which are passed directly to Text::Ipsum:

* words

The number of words to generate

* sentences

The number of sentences to generate

* paragraphs

The number of paragraphs to generate

AUTHOR

Top

John Ingram (john@funnycow.com)

LICENSE

Top

Copyright 2010 by John Ingram. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


Data-Maker documentation  | view source Contained in the Data-Maker distribution.