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::M09_001.

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

See Algorithm::CheckDigits::M10_001.

siren, siret

See Algorithm::CheckDigits::M10_002.

ups

See Algorithm::CheckDigits::M10_011.

betriebsnummer

See Algorithm::CheckDigits::M10_009.

ismn

See Algorithm::CheckDigits::M10_003.

ean, iln, nve, 2aus5

See Algorithm::CheckDigits::M10_004.

identcode_dp

See Algorithm::CheckDigits::M10_005.

rentenversicherung

See Algorithm::CheckDigits::M10_006.

upc

See Algorithm::CheckDigits::MBase_001.

sedol

See Algorithm::CheckDigits::M10_008.

postscheckkonti

See Algorithm::CheckDigits::M10_010.

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

See Algorithm::CheckDigits::M11_001.

pzn

See Algorithm::CheckDigits::M11_002.

pkz

See Algorithm::CheckDigits::M11_003.

cpf, titulo_eleitor

See Algorithm::CheckDigits::M11_004.

blutbeutel, bzue_de, ustid_de

See Algorithm::CheckDigits::MBase_002.

ccc_es

See Algorithm::CheckDigits::M11_006.

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,2005 by Mathias Weidner

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