Algorithm::CheckDigits::M23_001(3pm) | User Contributed Perl Documentation | Algorithm::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, "<mamawe@cpan.org>"
perl, CheckDigits, www.pruefziffernberechnung.de.
2022-10-13 | perl v5.34.0 |