SiLiK has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I'm a Perl newbie and I need to write a small program that reads from a comport and writes to a log file.

Can anyone point me to a appropriate example using Device::SerialPort tie syntax involving just reading (readline terminated by <LF><CR>) from the comm port or maybe write a sample code?

10x ahead.

Replies are listed 'Best First'.
Re: Device::SerialPort comm2log
by zentara (Cardinal) on Sep 18, 2004 at 12:47 UTC
      10x zentara.

      It wokrs fine for nonbuffered mode, but I need something that will read whole lines in a $var. The problem has changed, now I need to write to MySQL.