CleanCode Perl Libraries |
Home | Perl | Java | PowerShell | C# | SQL | Index | Tools | Download | What's New |
Multi-Lingual Library | Maintainability | ||||||||||||
Perl | Java | JavaScript | Certified Class |
Testable Class |
Standalone Mode |
Diagnostic Enabled |
CGI::PageValidator::PluginLib::CCLib - Library for the CreditCardNum plugin.
use CGI::PageValidator::PluginLib::CCLib;
my $verifier = CGI::PageValidator::PluginLib::CCLib::CCverifier;
if ($cardNum =~ /$verifier->{$type}/) ...
Perl5.005
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].
None
Michael Sorens
$Revision: 7 $ $Date: 2006-12-19 21:11:31 -0800 (Tue, 19 Dec 2006) $
CleanCode 0.9
Home | Perl | Java | PowerShell | C# | SQL | Index | Tools | Download | What's New |
CleanCode Perl Libraries | Copyright © 2001-2013 Michael Sorens - Revised 2013.06.30 |