Hello,
I'm really new in the perl-world and asking for some help.
I'm using a barcode scanner and inside the scanner is running a perl programm which processes the scanned barcode.
I can only set one regex to adjust the scanned code. The result is send to the RS232-port.
The host which is connected to the scanner needs a string with a fixed length.
SO I want to change the scanned string with a regex to a new string with a fix length (= 13) by adding some extra ZERO's
example:
barcode: 1234567890123 -> 1234567890123 (-> do nothing)
barcode: 123456789 -> 1234567890000 (-> adding 4 zero's)
option:
barcode: 123456789012345 -> maximum the first 13 characters.
Thanks to all who's willing to help me.
grtz,
Bart.