This example will print a page of EAN-13s ranging between two given values 
when called from a shell like this: 

$ ./ean13s.pl 978186074271 978186074292 | lpr