Subject: | Synopsis in POD is invalid for Regexp::Common::CC |
while (<>) {
/^$RE{zip}{Visa}$/ and print "Visa card number\n";
}
Should really be:
while (<>) {
/^$RE{CC}{Mastercard}$/ and print "Mastercard card number\n";
}
The changes are 'zip' to 'CC' and 'Visa' to 'Mastercard.'
It looks like the more difficult CC regexs were skipped for now
(according to the code comments) hence the reason I changed Visa to
Mastercard...
Also, it would be nice if the CC number types this module supports were
listed in the documentation so users don't have to dig into the code to
figure this out. I believe the complete list is:
'Mastercard', 'Amex', 'Diners Club', 'Discover'