in reply to How to read the RS-232 lines?

You want to have a look at the Perl modules Win32::SerialPort and / or Device::SerialPort, depending on the make of your OS.

Originally posted as a Categorized Answer.