Algorithm::CheckDigits::M10_003(3pm) | User Contributed Perl Documentation | Algorithm::CheckDigits::M10_003(3pm) |
CheckDigits::M10_003 - compute check digits for ISMN
use Algorithm::CheckDigits; $ismn = CheckDigits('ismn'); if ($ismn->is_valid('M-345-24680-5')) { # do something } $cn = $ismn->complete('M-345-24680'); # $cn = 'M-345-24680-5' $cd = $ismn->checkdigit('M-345-24680-5'); # $cd = '5' $bn = $ismn->basenumber('M-345-24680-5'); # $bn = 'M-345-24680'
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, "<mamawe@cpan.org>"
perl, CheckDigits, www.pruefziffernberechnung.de.
2022-10-13 | perl v5.34.0 |