Data::Maker::Field::MultiSet - A Data::Maker field class that generates its data based on a set of lists of potential values.
use Data::Maker; use Data::Maker::Field::MultiSet; my $maker = Data::Maker->new( record_count => 10, fields => [ { name => 'character', class => 'Data::Maker::Field::MultiSet', args => { sets => [ [ 'Dasher', 'Dancer', 'Prancer', 'Vixen', 'Comet', 'Cupid', 'Donner', 'Blitzen' ] [ 'Dopey', 'Sleepy', 'Grumpy', 'Doc', 'Happy', 'Bashful', 'Sneezy' ] ] } } ] );
Data::Maker::Field::MultiSet takes a single argument, sets, whose value must be an array reference consisting of array references of potential values.
sets
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.