That's not quite true. Only STDOUT is line-buffered by default. In fact, only STDOUT is ever line-buffered(*). I verified this with the following snippet:
perl -e "open(FH, q{>test}); print FH (qq{a\n}); sleep(5); print FH (q +q{a\n});"
The lines only appeared after the 5 seconds were over.
(*) Maybe XS or PerlIO can change this? Of course, tie could.
In reply to Re^4: Newline vs Return
by ikegami
in thread Newline vs Return
by DuaneCenveo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |