Algorithm-LUHN
view release on metacpan or search on metacpan
1.02 2014-06-30 NEILB
- Updated github repo URL after changing my github username
- Added Algorithm::Damm and Math::CheckDigits to SEE ALSO
- Fixed errors in pod: using c<...> instead of C<...> and
not escaping the > character.
- Added [MetaJSON] to dist.ini so META.json is included in releases
1.01 2014-06-30 NEILB
- Added SEE ALSO section with links to other LUHN modules.
- Renamed CHANGES to Changes and reformatted as per CPAN::Changes::Spec
- Moved LUHN.pm to lib/Algorithm/LUHN.pm, as per convention
- Switched to Dist::Zilla and set min perl version to 5.006
- Improved doc for is_valid(), in response to RT#43842
- Added github repo to pod
1.00 2002-03-26 TAYERS
- Fixed linguistic problem in error message
("not correct" vs. "incorrect").
lib/Algorithm/LUHN.pm view on Meta::CPAN
}
Algorithm::LUHN::valid_chars(map {$_ => ord($_)-ord('A')+10} A..Z);
$c = check_digit("A2C4E6G8");
print "It worked again\n" if is_valid("A2C4E6G8$c");
=head1 DESCRIPTION
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 & Poor's security identifiers such as CUSIP's and CSIN's.
You can find plenty of information about the algorithm by searching the web for
"modulus 10 double add double".
=head1 FUNCTION
=over 4
=cut
lib/Algorithm/LUHN.pm view on Meta::CPAN
against a card number.
L<Algorithm::Damm> implements a different kind of check digit algorithm,
the L<Damm algorithm|https://en.wikipedia.org/wiki/Damm_algorithm>
(Damm, not Damn).
L<Math::CheckDigits> implements yet another approach to check digits.
I have also written a
L<review of LUHN modules|http://neilb.org/reviews/luhn.html>,
which covers them in more detail than this section.
=head1 REPOSITORY
L<https://github.com/neilb/Algorithm-LUHN>
=head1 AUTHOR
This module was written by
Tim Ayers (http://search.cpan.org/search?author=TAYERS).
( run in 0.535 second using v1.01-cache-2.11-cpan-39bf76dae61 )