in reply to IO::Select can_read missing some reads...

Rule #1 with I/O: don't mix buffered operations (read, readline/<HANDLE>, seek, print) with unbuffered operations (select, sysread, sysseek, syswrite). You broke rule #1.

Change your readline op to a sysread, and you'll probably have much better functionality, or reveal a bug somewhere else instead. {grin}

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: •Re: IO::Select can_read missing some reads...
by suaveant (Parson) on Mar 13, 2002 at 18:35 UTC
    Ahhh ues.. I actually had a thought about buffering as I was writing the question... sysread does fix the problem nicely, it would seem... thanks! :)

                    - Ant
                    - Some of my best work - (1 2 3)