On 10/2/07, Bob McConnell <[EMAIL PROTECTED]> wrote: snip > > > > $| = 1; > > > > I wasn't aware this only applied to STDOUT. My log messages all > > appear at once, when the script has exited and I was hoping for some > > 'realtime' messages. > > It used to be possible to turn off buffering on specific streams using > SELECT FH prior to this statement. I have used it on both serial and > network connections. Is this still the case? > > i.e. > select(S); $| = 1; # don't cache outputs > > Where S is an open TCP/IP socket. snip
Yes, this is still the case. $| turns off buffering* for the currently selected filehandle. * or more accurately automatically flushes -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/