in reply to talking to com ports in Perl

You might want to look at How do I read and write the serial port?