Can you force flush output in Perl?
By default, STDOUT is line-buffered (flushed by LF) when connected to a terminal, and block-buffered (flushed when buffer becomes full) when connected to something other than a terminal. Furthermore, <STDIN> flushes STDOUT when it’s connected to a terminal. This means STDOUT isn’t connected to a terminal, you aren’t printing to STDOUT, or STDOUT’s been messed … Read more