in reply to Re: Cannot write to, or read from, the SerialPort
in thread Cannot write to, or read from, the SerialPort

#use strict; #use warnings;

I'm glad you got the code working, but please don't do this! Use strict and warnings!