Several years ago, I did some work to connect terminal server on windows by this module. mostly Win32::SerialPort workds well, except 2 issues:
- on 64bit windows box, the structure of serial port changes, if you use the modules on win64, you have to apply a patch on cpan( sorry I can't reach metacpan.)
- when com port number larger than 9, you have to specify the name as this format" \\.\COM10". since I note you use COM10 in your script. Please refer to this node
BTW:this module does work done, but the author use old Win32::API which has been buggy and itself unmaintained for long time, anyone want to pick it up? I think serial port is still used widely.
I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction