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;
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom