> -----Original Message-----
> From: Beginner [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 02, 2007 10:39 AM
> To: perl beginners
> Subject: Re: Variable scope
> 
> On 2 Oct 2007 at 15:23, Rob Dixon wrote:
> 
> > > 
> > >  $| = 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.

Bob McConnell

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to