Email::Barcode::Decode - decode barcodes out of an email
my $ebd = Email::Barcode::Decode->new(email => $msg); my @symbols = $ebd->get_symbols; foreach my $symbol (@symbols) { print( 'decoded ' . $symbol->{type} . ' symbol "' . $symbol->{data} .'"'. ' file "' . $symbol->{filename} .'"'. "\n" ); }
This module can extract barcode information out of email attachments. It processes all email image attachments. When Ghostscript is installed it converts every page into image. Images are scanned for barcodes using Barcode::ZBar.
email header_obj attached_files
Object constructor. Requires email string.
email
Returns an array of hashed with barcode information. Ex.:
my @symbols = ({ filename => 'vcard-pdf-page2.jpg', type => 'QR-Code', data => 'http://search.cpan.org/perldoc?Email%3A%3ABarcode%3A%3ADecode', });
Jozef Kutej
To install Email::Barcode::Decode, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Email::Barcode::Decode
CPAN shell
perl -MCPAN -e shell install Email::Barcode::Decode
For more information on module installation, please visit the detailed CPAN module installation guide.