Terrence Brannon > Data-FormValidator-Tutorial-1.4 > Data::FormValidator::Tutorial

Download:
Data-FormValidator-Tutorial-1.4.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 1.4   Source  

NAME ^

Data::FormValidator::Tutorial - Data::FormValidator tutorial

TUTORIAL ^

D::FV does two types of validation: existence and readability. Existence means that a value exists that should exist. Readability means that a value that exists is intelligible. For example, if a field labeled website has value of s)d--13, then it exists, but it is not readable.

Specification of data validation is done via a hashref which is known as an input profile. Here are the keys which tell D::FV something. In parenthesis is a description of what type of key it is.

Given the two tests that this module does, it makes sense that the return data would belong to one of 4 classes:

GOTCHAS (provided by William McKee) ^

CALL FOR PARTICIPATION (also from William) ^

Although the module docs are good and my tutorial provides some theoretical background about creating profiles, there is not a clearcut example of actually using this module to check and untaint form data which is then used in a "real" program. That would be a helpful addition to the tutorial.

AUTHOR ^

T. M. Brannon, <tbone@cpan.org>