Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

Barcode::Cuecat
Perl extension for decoding :CueCat scans

Barcode::Cuecat - Perl extension for decoding :CueCat scans


NAME

Barcode::Cuecat - Perl extension for decoding :CueCat(tm) scans


SYNOPSIS


  use Barcode::Cuecat;

  my $bc = new Barcode::Cuecat();

  $bc->scan($garbage);

  my $type = $bc->type();       # Get the type of barcode

  my $code = $bc->code();       # The actual number scanned

  my $serial = $bc->serial();   # The serial of the :CueCat


DESCRIPTION

This module is an attempt to ease the adoption of :CueCat(tm) into general purpose applications. The term :CueCat(tm) seems to be a trademark of a company called Digital Convergence. The code in this module is based on code that has been found in numerous sites. I have not found a reference to an author, so I cannot give proper credit for it. Some references point to Larry Wall, so if this code is actually yours, I hope you don't mind some repackaging of it :).

As for the legality of this code, I received my :CueCat over the mail, outside the United States. I had to pay the shipping for this device, even when I did not request it. According to the laws of the country where this code is being written, I have each and every right to reverse engineer or otherwise do whatever I please with this device. This module is one example of what can I excercise under my legal rights. This code, of course, carries the same warranties and can be used under the same terms as Perl itself.

The functions supported by this module are below:

->new($string)
Creates a Barcode::Cuecat object. $string is optional. If supplied, this saves you from invoking ->scan().

->scan($string)
Initializes the object with a newly scanned string.

->type()
Returns the type of barcode decoded. For known :CueCat numbers, this will be ':C1'.

->code()
Returns the actual number decoded in the barcode. Codes in the proprietary :CueCat format are converted automatically to a sequence of digits.

->serial()
Returns the serial number of the :CueCat(tm) scanner. Keep in mind that this information is meaningless after declawing the device.

EXPORT

None by default.


AUTHOR

Luis E. Munoz <lem@cantv.net>. Thanks to Larry Wall <larry@wall.org> for the compact original code. Thanks to Brian Blakley <bblakley@mp5.net> for feedback.


SEE ALSO

perl(1).

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy