On 10/2/07, Beginner <[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.
snip

It applies to stdout because it is the currently selected filehandle.
If you wish for $log to have autoflushing behavior you can either
select it

my $old = select $log;
$| = 0;
select $old;

or you can use IO::Handle and then use the autoflush method:

$log->autoflush;

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


Reply via email to