Nice one. Didn't think of using select. :-)
sysread($fh, $c, 1);
However, for performance reasons (remember, sysread is not buffered) you should not read one byte at a time, but in chunks (up to 1024 bytes at a time, say).
In reply to Re: Re: Serial I/O and time question
by eyepopslikeamosquito
in thread Serial I/O and time question
by shepner
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |