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)
{
push @replies, <$_> ;
}
}
Problems:
print statements (not shown here) tell me that
1) Socket appears to block, although @ready should
only contain a list of readable filehandles.
2) If Server closes the connection, the while
condition evaluates to true always and it loops
forever.
I can supply the full (but small !) program if more
details are required - any thoughts guys ?
David Milne
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/