in reply to reading from serial device
You may want to look at Device::SerialPort. It offers a more refined interface than talking to the raw device.
After Compline,Zaxo