_brian_d_foy wrote:
Thanks for your helpful comment,In article <[EMAIL PROTECTED]>, Perl Authors Upload Server <[EMAIL PROTECTED]> wrote:The following module was proposed for inclusion in the Module List: modid: Data::Validate::Itemhow does this compare to Data::FormValidator, CGI::Validate, and Attribute::Params::Validate?
These three modules are all intended to validate user input to forms.
Data::Validate::Item is intended to validate values in records.
Typically we would be reading in a large flat file, say a CSV file, split into records by lines like this :-
ID,Sex,Age,Diagnosis,Procedure,Date,Admission_type
1,1,33,147.2,76.19,01012000,5
[snip several thousand lines]
15444,2,42,256.3,45,12,12312000,3
The problem here is to locate the four records where say sex is recorded as 3, and do something about them.
This module allows you to specify what are legitimate values for each item in a record, and either validate or transform them.
Anthony Staines
--
Anthony Staines, Lecturer in Epidemiology, Department of Public Health,
UCD, Earlsfort Terrace, Dublin2, Ireland. http://phm.ucd.ie/
E-mail :- [EMAIL PROTECTED] Web :- http://astaines.ucd.ie/
Work :- + 353 1 716 7345 Fax :- +353 1 716 7407
Home :- + 353 1 849 1089 Mobile :- +353 1 86 606 9713