November 8 2014 | Weekend Wonders and Modest Modules | Back Next |
Constructor takes:
Path to the file to be processed:
file => 'path/to/myfile',
Pattern describing how to split a header row on a delimiter
header_split => '\s*=\s*',
Array of code references holding business rules
rules => [ { rule => sub { exists $metaref->{d}; }, label => q{'d' key must exist}, }, { rule => sub { $metaref->{d} =~ /^\d+$/; }, label => q{'d' key must be non-negative integer}, }, ],
Home Last TOC | Copyright © 2014 James E Keenan | Back Next |