CheckDigits::M23_001(3pm) | User Contributed Perl Documentation | CheckDigits::M23_001(3pm) |
CheckDigits::M23_001 - compute check digits for DNI (ES)
use Algorithm::CheckDigits; $dni = CheckDigits('dni_es'); if ($dni->is_valid('54362315K')) { # do something } $cn = $dni->complete('54362315'); # $cn = '54362315K' $cd = $dni->checkdigit('54362315K'); # $cd = 'K' $bn = $dni->basenumber('54362315K'); # $bn = '54362315'
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, <mathias@weidner.in-bad-schmiedeberg.de>
perl, CheckDigits, www.pruefziffernberechnung.de.
2008-05-17 | perl v5.10.0 |