You should check the return from sysread. If not defined you have a $! to act on ( you don't want to die on EAGAIN). It returns zero on eof or when zero bytes are read.
I don't understand what you mean by while ($client) {...} where $client looks like a filehandle on the following line. If you mean to say while (<$client>) {...} you shouldn't mix standard I/O with sysread, and the newline split is unneeded, as well.
If you have more than one $client, global the single $incoming is going to bite you.
After Compline,
Zaxo
In reply to Re: Uninitialized array woes.
by Zaxo
in thread Uninitialized array woes.
by rendler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |