NAME

CheckDigits - Perl extension to generate and test check digits

SYNOPSIS

  use Algorithm::CheckDigits;

  $isbn = CheckDigits('ISBN');

  if ($isbn->is_valid('3-930673-48-7')) {
	# do something
  }

  $cn = $isbn->complete('3-930673-48');     # $cn = '3-930673-48-7'

  $cd = $isbn->checkdigit('3-930673-48-7'); # $cd = '7'

  $bn = $isbn->basenumber('3-930673-48-7'); # $bn = '3-930673-48'
  
  Algorithm::CheckDigits->method_list();

ABSTRACT

This module provides a number of methods to test and generate check digits. For more information have a look at the web site www.pruefziffernberechnung.de (german).

CHECK SUM METHODS

Use the following to find out which methods your version of Algorithm::CheckDigits provides and where to look for further information.

perl -MAlgorithm::CheckDigits -e Algorithm::CheckDigits::print_methods

At the moment these methods to compute check digits are provided:

euronote

See Algorithm::CheckDigits::M002.

amex, bahncard, diners, discover, enroute, happydigits, jcb, klubkarstadt, mastercard, miles&more, visa

See Algorithm::CheckDigits::M003.

siren, siret

See Algorithm::CheckDigits::M004.

ups

See Algorithm::CheckDigits::M005.

betriebsnummer

See Algorithm::CheckDigits::M006.

ismn

See Algorithm::CheckDigits::M007.

ean, iln, nve, 2aus5

See Algorithm::CheckDigits::M008.

identcode_dp

See Algorithm::CheckDigits::M009.

rentenversicherung

See Algorithm::CheckDigits::M010.

upc

See Algorithm::CheckDigits::M011.

sedol

See Algorithm::CheckDigits::M012.

postscheckkonti

See Algorithm::CheckDigits::M013.

isbn, issn, ustid_pt, hkid, wagonnr_br, nhs_gb, vat_sl

See Algorithm::CheckDigits::M014.

pzn

See Algorithm::CheckDigits::M015.

pkz

See Algorithm::CheckDigits::M016.

cpf, titulo_eleitor

See Algorithm::CheckDigits::M017.

blutbeutel, bzue_de, ustid_de

See Algorithm::CheckDigits::M018.

ccc_es

See Algorithm::CheckDigits::M019.

sici

See Algorithm::CheckDigits::MBase_003.

ustid_fi

See Algorithm::CheckDigits::M11_007.

ustid_dk

See Algorithm::CheckDigits::M11_008.

nric_sg

See Algorithm::CheckDigits::M11_009.

ahv_ch

See Algorithm::CheckDigits::M11_010.

ustid_nl

See Algorithm::CheckDigits::M11_011.

bwpk_de

See Algorithm::CheckDigits::M11_012.

ustid_pl

See Algorithm::CheckDigits::M11_016.

EXPORT

None by default.

SEE ALSO

perl, www.pruefziffernberechnung.de.

AUTHOR

Mathias Weidner, <mathias@weidner.in-bad-schmiedeberg.de>

COPYRIGHT AND LICENSE

Copyright 2004 by Mathias Weidner

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.