Although this is quite off-topic. . . I've done work with bar-coding systems from Symbol Technologies. Basically, a bar-code is just a different font, the scanner will read it and convert it into a string of characters. Once it's into characters, then you can manipulate it however you wish with Perl.
There are several modules on CPAN that deal with Barcodes. Take a look at some of them. . .