Install libdevice-serialport-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libdevice-serialport-perl
Description:
emulation of Win32::SerialPort for Linux/POSIX
Device::SerialPort provides an object-based user interface essentially identical to the one provided by the Win32::SerialPort module. This provides device-level access to a system's serial port. . Also included is modemtest -- a tool for examining your modem using Device::SerialPort.
Homepage: https://metacpan.org/release/Device-SerialPort/
Version: 1.04-3build4
Section: universe/perl