CheckDigits::M11_006(3pm) | User Contributed Perl Documentation | CheckDigits::M11_006(3pm) |
CheckDigits::M11_006 - compute check digits for Codigo de Cuenta Corriente (ES)
use Algorithm::CheckDigits; $ccc = CheckDigits('ccc_es'); if ($ccc->is_valid('2420-0730-27-0050103552')) { # do something } $cn = $ccc->complete('2420-0730- -0050103552'); # $cn = '2420-0730-27-0050103552' $cd = $ccc->checkdigit('2420-0730-27-0050103552'); # $cd = '27' $bn = $ccc->basenumber('2420-0730-27-0050103552'); # $bn = '2420-0730- -0050103552';
If the difference is 10, the checkdigit is 1.
If the difference is 11, the checkdigit is 0.
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 |