Gordon Rowell > CGI-FormMagick-0.89 > CGI::FormMagick::Validator::Basic

Download:
CGI-FormMagick-0.89.tar.gz

Annotate this POD

CPAN RT

New  1
Open  0
Stalled  9
View/Report Bugs
Source  

NAME ^

CGI::FormMagick::Validator::Basic - basic validation routines for FM

SYNOPSIS ^

use CGI::FormMagick;

DESCRIPTION ^

See CGI::FormMagick::Validator for a general description.

Validation routines provided:

nonblank

The data is not an empty string : $data ne ""

integer

The data is a positive integer.

number

The data is a number (positive and negative real numbers, and scientific notation are OK).

word

The data looks like a single word: $data !~ /\W/

date

The data looks like a date. Requires the Time::ParseDate module to be installed.

syntax highlighting: