![]() |
|
more useful options | |
PerlMonks |
Re: reading from a socket, a little at a timeby Anonyrnous Monk (Hermit) |
on Feb 15, 2011 at 19:06 UTC ( [id://888358]=note: print w/replies, xml ) | Need Help?? |
A read on a socket does not necessarily read the number of characters requested, but it does return the number of characters actually read (which may be fewer, if not enough data is available at the moment). Other than that, your impression is correct that a subsequent read would continue where the previous one left off. BTW, are you sure you want to do a readline (i.e. <$client>) before doing $client->read(...)?
In Section
Seekers of Perl Wisdom
|
|