in reply to What does "increment $| or set it to 1" mean for my CGI app?
my $prev_fh = select $outfh; local $| = 1; # autoflush select $prev_fh; [download]