MidLifeXis / perl-algorithm-damm

Perl implementation of the Damm ECC algorithm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Integrate with Algorithm::CheckDigits

MidLifeXis opened this issue · comments

From http://prepan.org/module/nXWJ8Y9sBhL:

  • provides A::CD-like API
  • object-based
  • functional-based
  • provide integration patch

From Algorithm::CheckDigits:

Every object understands the following methods:

  • is_valid($number)
    Returns true or false if $number contains/contains no valid check digit.
  • complete($number)
    Returns a string representation of $number completed with the appropriate check digit.
  • checkdigit($number)
    Extracts the check digit from $number if $number contains a valid check digit.
  • basenumber($number)
    Extracts the basenumber from $number if $number contains a valid check digit.

Branch plugin is a preliminary enhancement using a proposed plugin interface.