CheckDigits::M09_001(3pm) | User Contributed Perl Documentation | CheckDigits::M09_001(3pm) |
CheckDigits::M09_001 - compute check digits for Euro notes
use Algorithm::CheckDigits; $euro = CheckDigits('euronote'); if ($euro->is_valid('X07738250357')) { # do something } $cn = $euro->complete('X0773825035'); # $cn = 'X07738250357' $cd = $euro->checkdigit('X07738250357'); # $cd = '7' $bn = $euro->basenumber('X07738250357'); # $bn = 'X0773825035'
To validate the last digit of the total of the digits of all numbers inclusive check digit must be 8.
Returns false otherwise,
Returns the complete number with check digit or '' if $number does not consist solely of digits.
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 |