Problems? Is your data what you think it is? | |
PerlMonks |
Re: What is the easy way to check if the socket has data to read, before do a read()by perlknight (Pilgrim) |
on Jul 24, 2002 at 14:21 UTC ( [id://184851]=note: print w/replies, xml ) | Need Help?? |
Use IO::Select, pass the socket handle to it and use can_read method to detemine if the handle is ready, here's snippet from perldoc:
In Section
Seekers of Perl Wisdom
|
|