$ perl -MTime::HiRes=sleep -e'while(1){print ".";sleep 0.001}' | perl + -le'print sysread(STDIN,$rec,1024*1024)' 4096
(no, the sleep isn't strictly necessary, but it makes the buffering effect more obvious.)
- tye
In reply to Re: how many chars/bytes does STDOUT buffer (test)
by tye
in thread how many chars/bytes does STDOUT buffer
by sandy105
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |