in reply to syswrite and STDOUT
Sounds like you are trying to write too big of a buffer (for the pipe).
while( 4096 < length $buffer ) { syswrite( STDOUT, $buffer, 4096 ); substr( $buffer, 0, 4096, '' ); } syswrite( STDOUT, $buffer ); [download]
Perhaps?
- tye