Data::Generate

Data::Generate allows you to create various types of synthetic data by parsing "regex-like" data creation rules.
Download

Data::Generate Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Davide Conti
  • Publisher web site:
  • http://search.cpan.org/~daconti/Data-Generate-0.01/

Data::Generate Tags


Data::Generate Description

Data::Generate allows you to create various types of synthetic data by parsing "regex-like" data creation rules. Data::Generate allows you to create various types of synthetic data by parsing "regex-like" data creation rules.This module generates data by parsing given text statements (data creation rules). These statements are flexible and powerful regex-like way to control the production of synthetic data. Think about a program that instead of selecting data which matches a regex filter expression, produces it. For example, from the rule , the generator would produce the array a,b,c. The module works as following:Specify data creation rules.my $generator= Data::Generate::parse('VC(24) ');At this step first you define one kind of output datatype (for ex. VC(24)= "output is a string with max length 24") and then with the rest of the expression define what it should look like. If parsing is successful a Data Generator object is instantiated.Get data my $Data= $generator->get_unique_data(10);To really get the data, users must call the get_unique_data method by indicating the desired number of output values. The generator returns the values contained in an array reference. Please remark that output format is fixed according to the data type. Requirements: · Perl · Parse::RecDescent · Date::Parse · Date::DayOfWeek


Data::Generate Related Software