CheckDigits::M11_015(3pm) | User Contributed Perl Documentation | CheckDigits::M11_015(3pm) |
CheckDigits::M11_015 - compute check digits for ESR5 (CH)
use Algorithm::CheckDigits; $ustid = CheckDigits('esr5_ch'); if ($ustid->is_valid('123456786')) { # do something } $cn = $ustid->complete('12345678'); # $cn = '123456786' $cd = $ustid->checkdigit('123456786'); # $cd = '6' $bn = $ustid->basenumber('123456786'); # $bn = '12345678';
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 '' otherwise.
None by default.
Mathias Weidner, <mathias@weidner.in-bad-schmiedeberg.de>
perl, CheckDigits, www.pruefziffernberechnung.de,
2008-05-17 | perl v5.10.0 |