Problems? Is your data what you think it is? | |
PerlMonks |
Re: Reading and writing socketsby gbarr (Monk) |
on Dec 11, 2001 at 17:59 UTC ( [id://130925]=note: print w/replies, xml ) | Need Help?? |
First off, don't use read() and print(), they are stdio calls and are therefore subject to buffering. Instead use sysread() and syswrite().
To determine if there is anything to read use select() (see IO::Select)
In Section
Seekers of Perl Wisdom
|
|