in reply to issues reading from serial port

Well, in the UNIX world the trick would be to open the device nonblocking, ie with the O_NONBLOCK flag, or use fcntl to set it later; but I don't know much about windows and what it supports. I suppose you could try
use Fnctl; sysopen(HANDLE, $path, O_NONBLOCK);
and see if it works under windows.

Dave.

Replies are listed 'Best First'.
Re^2: issues reading from serial port
by EvanK (Chaplain) on Aug 06, 2005 at 04:14 UTC
    well, I'm using the Win32::SerialPort module, and it doesnt use sysopen() at all, it simply tie()s the filehandle to the serial stream.

    __________
    Give a man a match and he'll be warm for an hour. Set him on fire and he'll be warm for the rest of his life.