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 reply to Re^6: Stumped with select->can_read (concat)
by tye
in thread Stumped with select->can_read
by w1r3d
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |