Hi,
to quote from perldoc -f select:
WARNING: Do not attempt to mix buffered I/O (like read() or )
with select(). You have to use sysread() instead.
Thus, none of the examples will work reliably - just because socket is
ready-for-read does not mean that you can read whole line
Hello,
I'll try to explain what I think is happening, hoping it may be helpful.
my @replies ;
# here we're creating an IO::Select object, good
my $sel = IO::Select->new();
# and adding the socket handle, good also
$sel->add($socket);
# we wait until there are available data to be read.
#
Hi,
I am having problems with the IO::Select classes.
I am trying to read a long string from a pop server.
Accordingly, I have something along the lines of
my @replies ;
my $sel = IO::Select->new();
$sel->add($socket);
while (@ready = $sel->can_read())
{
foreach (@ready)
{
p