Do you know where your variables are? | |
PerlMonks |
Re^2: Increasing the write bufferby ikegami (Patriarch) |
on Jun 21, 2008 at 17:54 UTC ( [id://693291]=note: print w/replies, xml ) | Need Help?? |
There are three buffering states:
If a handle is buffered, line buffering is always and only used when the file handle is connected to a terminal. So, if you're writing to a file, \n won't flush. But if you're writing to STDOUT and it hasn't been redirected, \n will flush if buffering wasn't turned off. You can turn on buffering using
You can turn off buffering using
You can flush manually using
* — Well, I *think* the buffer size is 4KB.
In Section
Seekers of Perl Wisdom
|
|