o
return an entire line (up to the first \n or \r)...
If you intend to read -only- one char, you should check Device::SerialPort
docs... There's plenty of examples =)
Later.-
- Original Message -
From: Jeff Liu
To: Papo Napolitano ; Beginners
Sent: Friday, March 01, 2002 17:17
Su
p 1;
}
print "$bytein\n";
}
$port->close();
-Original Message-
From: Papo Napolitano [mailto:[EMAIL PROTECTED]]
Sent: February 28, 2002 5:51 PM
To: Jeff Liu; Beginners
Subject: Re: perl serial port program
I'm using the Device::SerialPort to monitor the logs
I'm using the Device::SerialPort to monitor the logs from our Panasonic
phone system ;)
Take a look at CPAN.
It's as easy as:
use Device::SerialPort;
$port = new Device::SerialPort("/dev/ttyS0");
$port->baudrate(9600);
$port->parity("none");
$port->databits(8);
$port->stopbits(1);
$port->handsha