CheckDigits::M11_008(3pm) | User Contributed Perl Documentation | CheckDigits::M11_008(3pm) |
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 false otherwise,
Returns the complete number with check digit or '' if $number does not consist solely of digits, hyphens and spaces.
Return '' otherwise.
Return undef otherwise.
None by default.
Mathias Weidner, <mathias@weidner.in-bad-schmiedeberg.de>
perl, CheckDigits, www.pruefziffernberechnung.de,
2021-01-03 | perl v5.32.0 |