title: Programming Serial Ports in Linux using Device::SerialPorts
body: <p>I am trying to communicate with a embedded system using a communication port COM0 which is ttyS0 in linux. I tried another software on Windows and it seems to be able to communicate properly with the port. I tried using this code, but right at the very first line I get an error. </p>
  
  <pre><code>use strict;
  use warnings;
  use Device::SerialPort;
  
  
  die "Cannot Open Serial Port\n" unless my $PortObj = new Device::SerialPort ("/dev/ttyS0");
  </code></pre>
  
  <p>Also is there another easier way to communicate with the serial port.</p>