Business::CreditCard is a Perl module for verifying credit card numbers and card types.
There are several other Perl modules available on CPAN for this, however only Business::CreditCard is up-to-date and maintained with regard to country-specific processing agreements and recent BIN updates.
This provides accurate and up-to-date card type recognition for all cards.
Most recently, Business::CreditCard minimum version 0.35 is recommended for recognition of MasterCard's new 222100-272099 range (active
October 2016 January 2017).
Business::CreditCard on CPAN