To proceed from one truth to another, and connect distant
propositions by regular consequences, is the great prerogative of
man --Samuel Johnson
The simple perl script proof of concept demonstrated here,
performs data type validation on the provided data
file. The script creates an output file with bad data attributes
substituted by default values. The data type specification and
default values are read from a specification file. A database
table can be easily substituted for the specification file to
make this process more robust. This functionality is provided out
of the box by the commercial ETL tools.
#!/usr/local/bin/perl -w
use strict;
#
# http://www.dwoptimize.com/2007/05/data-type-validation-using-regular.html
# jag.singh@dwoptimize.com
# Version 0.3
# feedback incorporated …[Read more]