Data::Faker::MetaSyntactic - Data::Faker plugin for metasyntactic data
use Data::Faker 'MetaSyntactic'; my $faker = Data::Faker->new(); # using themes from Acme-MetatSyntactic-Themes say "First name ", ucfirst $faker->meta_crypto; say "Favorite colour: ", $faker->meta_colours; say "Favorite flavour: ", $faker->meta_ben_and_jerry; say "Random stuff: ", join " ", map $faker->meta, 1 .. 4;
Data::Faker creates fake (but reasonable) data that can be used for things such as filling databases with fake information during development of database related applications.
This module is a plugin that taps into the data provided by Acme::MetaSyntactic.
See Data::Faker for details.
Each and every installed Acme::MetaSyntactic theme can be a data provider. If theme name is $theme, the corresponding data provider is named meta_$theme.
$theme
meta_$theme
For example, data from theme foo will be provided via meta_foo.
foo
meta_foo
The meta provider is a synonym for meta_any, which gets data from a random theme.
meta
meta_any
Data::Faker, Acme::MetaSyntactic, Task::MetaSyntactic.
Philippe Bruhat (BooK) <book@cpan.org>
Copyright 2014 Philippe Bruhat (BooK), 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::Faker::MetaSyntactic, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Faker::MetaSyntactic
CPAN shell
perl -MCPAN -e shell install Data::Faker::MetaSyntactic
For more information on module installation, please visit the detailed CPAN module installation guide.