CheckDigits::M11_002
compute check digits for PZN (DE)
compute check digits for PZN (DE)
use Algorithm::CheckDigits;
$pzn = CheckDigits('pzn');
if ($pzn->is_valid('4877800')) {
# do something
}
$cn = $pzn->complete('487780');
# $cn = '4877800'
$cd = $pzn->checkdigit('4877800');
# $cd = '0'
$bn = $pzn->basenumber('4877800');
# $bn = '487780'
Returns false otherwise,
Returns the complete number with check digit or '' if $number does not consist solely of digits and spaces.
Return '' otherwise.
Return '' otherwise.
None by default.
Mathias Weidner, <mathias@weidner.in-bad-schmiedeberg.de>
perl, CheckDigits, www.pruefziffernberechnung.de.