Algorithm-CheckDigits

 view release on metacpan or  search on metacpan

t/upc.t  view on Meta::CPAN

use Test;
BEGIN {
	plan(tests => 1); 
};
use Algorithm::CheckDigits;

my $upc = CheckDigits('upc');

# there was an error exposed with that number, so I include it here to
# avoid making that error again.
#
# Thanks to Aaron W. West
#
ok($upc->is_valid("724358016420"));



( run in 1.328 second using v1.01-cache-2.11-cpan-600a1bdf6e4 )