in reply to writing to logfile in a loop
my $oldfh = select(FH); $| = 1; select($oldfh); [download]
FH->autoflush(1); [download]