in reply to Re^2: how many chars/bytes does STDOUT buffer (test)
in thread how many chars/bytes does STDOUT buffer
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: how many chars/bytes does STDOUT buffer (docs)
by sandy105 (Scribe) on Apr 03, 2015 at 06:34 UTC | |
by Discipulus (Canon) on Apr 03, 2015 at 09:51 UTC | |
by tye (Sage) on Apr 03, 2015 at 13:12 UTC |