CleanCode Perl Libraries
Multi-Lingual Library Maintainability
available: Perl not available: Java available: JavaScript not available: Certified
Class
not available: Testable
Class
not available: Standalone
Mode
not available: Diagnostic
Enabled

NAME

CGI::PageValidator::PluginLib::CCLib - Library for the CreditCardNum plugin.

SYNOPSIS

        use CGI::PageValidator::PluginLib::CCLib;
        my $verifier = CGI::PageValidator::PluginLib::CCLib::CCverifier;
        if ($cardNum =~ /$verifier->{$type}/) ...

REQUIRES

Perl5.005

DESCRIPTION

A mini-library used by the CreditCardNum plugin to specify acceptable digit patterns for each credit card type. Looked up by type, each entry returns a regular expression to match against an input candidate.

The currently supported credit card types are: visa, mc, amex, diners, carteblanche, discover, jcb, and enroute. This list must match the CCTypeList definition in the system library SysLib.

The interface to this module consists of the single variable CCverifier. To access a value, use CCVerifier->{$type} [Perl] or CCverifier[type] [JS].

BUGS

None

AUTHOR

Michael Sorens

VERSION

$Revision: 7 $ $Date: 2006-12-19 21:11:31 -0800 (Tue, 19 Dec 2006) $

SINCE

CleanCode 0.9


CleanCode Perl Libraries Copyright © 2001-2013 Michael Sorens - Revised 2013.06.30 Get CleanCode at SourceForge.net. Fast, secure and Free Open Source software downloads