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
undef, 0.25; # Prevent the program to takeover the
CPU ;)
}
}
There, in $data you have a line up to the first \n.
HTH.-
- Original Message -
From: Jeff Liu
To: Beginners
Sent: Thursday, February 28, 2002 19:00
Subject: perl serial port program
Hi there,
I need to cook a perl scrip
Hi there,
I need to cook a perl script talking to /dev/ttyS0, it will be used to
monitor a RAID device via serial port. But even spending the whole day I was
still not lucky enough to be successful. Could you please show me a way to
deal with it?
Many thanks,
Jeff Liu
--
To unsubscribe, e-ma