You need to unbuffer your filehandle. Here's the basic idea:
{ my $ofh = select OUTPUT; $| = 1; select $ofh; }
For more information about this, see Suffering from Buffering? by Dominus.
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In reply to (Ovid) Re: Buffering File Output
by Ovid
in thread Buffering File Output
by MadraghRua
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |