From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

NAME

Data::Maker::Field::Set - A Data::Maker field class that generates its data based on a list of potential values.

SYNOPSIS

my $maker = Data::Maker->new(
record_count => 10,
fields => [
{
name => 'reindeer',
class => 'Data::Maker::Field::Set',
args => {
set => [ 'Dasher', 'Dancer', 'Prancer', 'Vixen', 'Comet', 'Cupid', 'Donner', 'Blitzen' ]
}
}
]
);

DESCRIPTION

Data::Maker::Field::Set takes a single argument, set, whose value must be an array reference of potential values.

AUTHOR

John Ingram (john@funnycow.com)

LICENSE

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.