I did a search on CPAN with the keyword "serial port", but the returned results has 2801 entries. If I think I need a generic module, which is the right choice?
Thank you for advice.
my $modem = new Device::Modem( port => 'COM1' );
It works on Win32 and Linux systems, because it's built on top of 2 other modules Device::SerialPort for Linux and Win32::SerialPort for Win32 machines.