CGI::ValidOp::Check::demographics(3pm)

CGI::ValidOp::Check::demographics3pm

Cgi::validop::check module to validate various demographics.

Overview

default

Should die.

us_state2

Passes if value is a valid United States 2-letter abbreviation, as determined by the USPS: http://www.usps.com/ncsc/lookups/usps_abbreviations.html.

us_ssn($constraint)

Passes if value is a 9-digit integer with optional dashes (e.g. 123-45-6789). If $constraint is "integer" the dashes are stripped:

    # given CGI variable 'ssn' equal to '123-45-6789'
    $ssn = $cgi->param( 'ssn', [ 'demographics::ssn' ]);            # eq '123-45-6789'
    $ssn = $cgi->param( 'ssn', [ 'demographics::ssn(integer)' ]);   # eq '123456789'

Releases

Unchanged in 3 releases since Debian 6.0 (Squeeze).

  1. 6.0–8

Author

Randall Hansen <[email protected]>

From libcgi-validop-perl 0.56-1 in Debian 8 (Jessie). Parsed by carta from the page's man source.