The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Data::Maker::Field::MultiSet - A Data::Maker field class that generates its data based on a set of lists of potential values.

SYNOPSIS

  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' ]
          ]
        }
      }
    ]
  );

DESCRIPTION

Data::Maker::Field::MultiSet takes a single argument, sets, whose value must be an array reference consisting of array references 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.