Acrux
view release on metacpan or search on metacpan
lib/Acrux/Digest/M11R.pm view on Meta::CPAN
package Acrux::Digest::M11R;
use strict;
use utf8;
=encoding utf-8
=head1 NAME
Acrux::Digest::M11R - interface for modulus 11 (recursive) check digit calculation
=head1 SYNOPSIS
use Acrux::Digest::M11R;
my $m11r = Acrux::Digest::M11R->new();
my $digest = $m11r->digest( "123456789" ); # 5
=head1 DESCRIPTION
This is Digest backend module that provides calculate the modulus 11 (recursive) check digit
=head1 METHODS
This class inherits all methods from L<Acrux::Digest> and implements the following new ones
=head2 digest
my $digest = $m11r->digest( "123456789" ); # 5
Returns M11R checkdigit by specified digits-string
=head1 HISTORY
See C<Changes> file
=head1 TO DO
See C<TODO> file
=head1 SEE ALSO
L<Acrux::Digest>, L<Algorithm::CheckDigits::M11_015>, B<check_okpo()>
=head1 AUTHOR
Serż Minus (Sergey Lepenkov) L<https://www.serzik.com> E<lt>abalama@cpan.orgE<gt>
=head1 COPYRIGHT
Copyright (C) 1998-2026 D&D Corporation
=head1 LICENSE
This program is distributed under the terms of the Artistic License Version 2.0
See the C<LICENSE> file or L<https://opensource.org/license/artistic-2-0> for details
=cut
use Carp;
use parent qw/Acrux::Digest/;
sub digest {
# See also: Algorithm::CheckDigits::M11_015 and check_okpo()
( run in 0.531 second using v1.01-cache-2.11-cpan-fe3c2283af0 )