MooseX::Types::GTIN - Moose types for Global Trade Identifiers.
use MooseX::Types::GTIN qw/ GTIN ISBN10 /; is_GTIN(829410333658); # returns true to_GTIN(" 829410333658 "); # returns 829410333658 is_ISBN10(0974514055); # returns true to_GTIN(0974514055); # returns 9780974514055 use Moose; has barcode => ( is => "rw", isa => GTIN ); has isbn => ( is => "rw", isa => ISBN10 );
This package provides Moose types for "Global Trade Identifiers, also known as UPCs and EANs. 8, 12, 13 and 14 digital varients of GTINs are supported, along with 10 digit ISBN numbers. The checksum of GTINs are validated, ISBN numbers are only checked for the correct form.
MooseX::Types
http://www.gs1.org/barcodes/support/check_digit_calculator
Dave Lambley <davel@state51.co.uk>, on behalf of his employer, http://www.state51.co.uk.
To install MooseX::Types::GTIN, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::Types::GTIN
CPAN shell
perl -MCPAN -e shell install MooseX::Types::GTIN
For more information on module installation, please visit the detailed CPAN module installation guide.