in reply to Re^5: Stumped with select->can_read (buffered)
in thread Stumped with select->can_read
sysread as big of chunks as you can, then concat everything into a temp buffer
sysread can read onto the end of the buffer, avoiding the need to copy the data again:
sysread( $fh, $buf, 16*1024, length($buf) );
- tye
|
---|
In Section
Seekers of Perl Wisdom