in reply to SerialPort issues under Windows 10

Hello clinicalAD and welcome to the monastery and to the wonderful worldo of perl!

waiting for others answers, just shooting in the dark: try to print also the OS error in your die clause: || die "couldn't open COM1 $^E";

Then you can imports some useful constants (see also Operating methods) from the module, which inherit from Win32API::CommPort

Search here at the monastery for other useful examples, some one very recent as How to read serial port with WIN32:SerialPort?

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.