Algorithm::LUHN

Description

Algorithm::LUHN is a Perl module to calculate the modulus 10 double add double checksum. SYNOPSIS use Algorithm::LUHN qw/check_digit is_valid/; $c = check_digit("43881234567"); print "It worksn" if is_valid("43881234567$c"); $c = check_digit("A2C4E6G8"); # this will cause an error print "Valid LUHN characters are:n"; my %vc = Algorithm::LUHN::valid_chars(); for (sort keys %vc) { print "$_ => $vc{$_}n"; } Algorithm::LUHN::valid_chars(map {$_ => ord($_)-ord(A)+10} A..Z); $c = check_digit("A2C4E6G8"); print "It worked againn" if is_valid("A2C4E6G8$c"); This module calculates the Modulus 10 Double Add Double checksum, also known as the LUHN Formula. This algorithm is used to verify credit card numbers and Standard & Poors security identifiers such as CUSIPs and CSINs. You can find plenty of information about the algorithm by searching the web for "modulus 10 double add double"..

Luhn - Algorithmluhn - Perl Module - Double - Modulus - Module - Print - Libraries - Programming

Published By:Tim Ayers

License Type:Freeware

Date Added:26 October, 2010

Version:1.00

Price:Free

Downloads:19

Size:4.1 KB

Platform: Linux

What people say
- required fields
     
Related Downloads

Data::Encrypted is a Perl module to transparently store encrypted data via RSA. SYNOPSIS # functional interface: use Data::Encrypted file => "./.

DateAug 12, 2010

AuthorAaron J Mackey

Size7.2 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

XML::Generator::vCard is a Perl module that can generate SAX2 events for vCard 3.

DateOct 4, 2010

AuthorAaron Straup Cope

Size7.2 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

WWW::Webrobot::pod::Testplan is a Perl module that helps you on how to write a test plan for webrobot. A test plan is a list of elements. An element itself may be a request, a (sub) test plan, an include or a cookie control command.

DateAug 25, 2010

AuthorABAS Software AG

Size98.3 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

Test::Stochastic is a Perl module to check probabilities of randomized methods. SYNOPSIS use Test::Stochastic qw(stochastic_ok); stochastic_ok sub { ...random sub...}, {a => 0.4, b => 0.6}; stochastic_ok {a => 0.4, b => 0.

DateAug 26, 2010

AuthorAbhijit Mahabal

Size4.1 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

Games::SGF::Tournament is a Perl module for tournament statistics generator.

DateOct 6, 2010

AuthorAl Nikolov

Size12.3 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming