NAME
Acrux::Digest::Damm - interface for Damm check digit calculation
SYNOPSIS
use Acrux::Digest::Damm;
my $damm = Acrux::Digest::Damm->new();
my $d = $damm->checkdigit( "123456789" ); # 4
$damm->checkdigit( "123456789$d" ); # 0 - correct
DESCRIPTION
This is a Digest backend module that provides calculation of the Damm check digit
METHODS
This class inherits all methods from Acrux::Digest and implements the following new ones
checkdigit
See "digest"
digest
my $damm = Acrux::Digest::Damm->new();
my $digest = $damm->digest( "123456789" ); # 4
$damm->digest( "123456789$digest" ); # 0 - correct
my $digest = $damm->digest( "987654321" ); # 5
$damm->digest( "987654321$digest" ); # 0 - correct
Returns Damm checkdigit by specified digits-string
See also https://en.wikipedia.org/wiki/Damm_algorithm
HISTORY
See Changes file
TO DO
See TODO file
SEE ALSO
Acrux::Digest, https://en.wikipedia.org/wiki/Damm_algorithm
AUTHOR
Serż Minus (Sergey Lepenkov) https://www.serzik.com <abalama@cpan.org>
COPYRIGHT
Copyright (C) 1998-2026 D&D Corporation
LICENSE
This program is distributed under the terms of the Artistic License Version 2.0
See the LICENSE file or https://opensource.org/license/artistic-2-0 for details