in reply to Re^2: can't open ttyS0 with Device::SerialPort
in thread can't open ttyS0 with Device::SerialPort

Sorry, the read-write open call should be open(T, "+</dev/ttyS0").