I
Itay Greenspon
Hi,
When printing to an output handle, buffering varies with the type of
output device.
2K. Pipes and sockets are often buffered with a buffer size between
1/2 and 2K. Serial devices, including terminals, modems, mice, and
joysticks, are normally line-buffered; stdio sends the entire line out
only when it gets the newline."
There's a simple mechanism to enable autoflushing (using $| or
otherwise) ,
But can one control the SIZE of the output buffer?
(rather than setting buffering "on"/"off")
-- Itay
When printing to an output handle, buffering varies with the type of
output device.
"Disk files are block buffered, often with a buffer size of more thanFrom the perl cookbook:
2K. Pipes and sockets are often buffered with a buffer size between
1/2 and 2K. Serial devices, including terminals, modems, mice, and
joysticks, are normally line-buffered; stdio sends the entire line out
only when it gets the newline."
There's a simple mechanism to enable autoflushing (using $| or
otherwise) ,
But can one control the SIZE of the output buffer?
(rather than setting buffering "on"/"off")
-- Itay