in reply to Re^2: script for adding timestamp to stdin
in thread script for adding timestamp to stdin
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: script for adding timestamp to stdin
by Anonymous Monk on Jan 20, 2012 at 15:45 UTC |