in reply to Re: Stumped with select->can_read (buffered)
in thread Stumped with select->can_read
That makes sense. Would I have to use read() in this case?
I tried doing:
while(@ready = $sel->can_read)
foreach my $fh(@ready)
my $line = "";
my $buf = "";
while(read($fh, $buf, 1024))
$line .= $buf;
Didn't work for me, maybe because LENGTH (=1024) is too big? Sorry, I'm not familiar with read(), as you can see :/
EDIT: nvm. I'm reading the link you posted now. Will report back if I still can't figure it out. Thanks!