in reply to Is there a way to control when output gets printed to a file?

$| = 1;

See Mark-Jason Dominus' Suffering from Buffering

  • Comment on Re: Is there a way to control when output gets printed to a file?