in reply to Re^2: Opens but Won't Write to file
in thread Opens but Won't Write to file
Simplest, but costly. From the docs:
use IO::Handle; # thousands of lines just for autoflush :-(
I think that comment originates from someone rather well respected within the perl community.
That could be avoided by a simple (untested):
sub autoflush{ my $old = select $_[ 0 ]; $|=1; select $old; } ... autoflush $fh;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Opens but Won't Write to file
by ikegami (Patriarch) on Oct 30, 2009 at 22:16 UTC | |
|
Re^4: Opens but Won't Write to file
by chromatic (Archbishop) on Oct 31, 2009 at 08:58 UTC | |
|
Re^4: Opens but Won't Write to file
by saintjames (Novice) on Oct 30, 2009 at 22:36 UTC |