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.
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 } } ] );
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
John Ingram (john@funnycow.com)
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.
To install Data::Maker, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Maker
CPAN shell
perl -MCPAN -e shell install Data::Maker
For more information on module installation, please visit the detailed CPAN module installation guide.