
CheckDigits::M11_008 - compute check digits for VAT Registration Number (DK)

use Algorithm::CheckDigits;
$ustid = CheckDigits('ustid_dk');
if ($ustid->is_valid('13585628')) {
# do something
}
$cn = $ustid->complete('1358562');
# $cn = '13585628'
$cd = $ustid->checkdigit('13585628');
# $cd = '8'
$bn = $ustid->basenumber('13585628');
# $bn = '1358562';

Returns true only if $number consists solely of numbers and the sum computed according to the algorithm given above is 0.
Returns false otherwise,
Returns $number if $number is valid according to the algorithm given above.
Return '' otherwise.
Returns $number if $number is valid according to the algorithm given above.
Return '' otherwise.
Returns '' if $number is valid.
Return undef otherwise.
None by default.

Mathias Weidner, <mathias@weidner.in-bad-schmiedeberg.de>

perl, CheckDigits, www.pruefziffernberechnung.de,