Try
open my $fh, ... use IO::Handle; $fh->autoflush(); # <--
File handles are block-buffered by default, i.e. output is not flushed/written to the file until the buffer is full.
In reply to Re^3: script for adding timestamp to stdin
by almut
in thread script for adding timestamp to stdin
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |