Yeah, the point was the test, not the sample number produced. Since "line-buffer STDOUT to a terminal but full-buffered to a file or pipe" is the pattern for almost all programs, not just Perl, it is likely that the buffering is not done by Perl and so the size depends on your OS and/or C library version. Though, Perl has several choices of I/O layer implementation and one or more of them might re-implement that standard I/O buffer behavior but might choose different default sizes (though, I recall there being ways to specify buffering and the standard http://perl.plover.com/FAQs/Buffering.html documents such and much more).
- tye
In reply to Re^3: how many chars/bytes does STDOUT buffer (docs)
by tye
in thread how many chars/bytes does STDOUT buffer
by sandy105
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |