There is Win32API::CommPort.
Once upon a time I used to write testbed code for hardware I designed.
Generally the system control and monitoring was all done on RS-232 ports.
We were using Windows, and for at least the last 5 or 6 years that I can
recall we always did our testing in the lab with Perl.