You also have the less obvious $|=1
which sets autoflush to on for the currently selected filehandle. as well as use IO::Handle; FILEHANDLE->autoflush(x) x=0/undef for off, and 1 for on. And again use IO::Handle printflush FILEHANDLE "stuff to print"; for a print with a built in flush :-) Please don't ask for that in english.. > -----Original Message----- > From: Rob Dixon [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 18 February 2004 5:23 AM > To: [EMAIL PROTECTED] > Subject: Re: Flushing FileHandle's Buffer > > Balaji thoguluva wrote: > > > > I would like to know if there is a function(other > > than close FILEHANDLE) to flush current filehandle's > > buffer data to the file. In otherwords, I want to make > > sure the following PRINT statement to work immediately > > after its execution. > > > > print FILEHANDLE "Flush this data IMMEDIATELY to the > > file"; > > Hi Balaji. > > If you > > use IO::Handle; > > then you can > > flush FILEHANDLE; > > whenever you want, or turn on autoflush with > > autoflush FILEHANDLE; > > which will flush the buffer after every print. > > HTH, > > Rob > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
