I agree, a bit off topic, but for my log files I use the following code:

                my $TempSelect = select( LOGF );
                $| = 1;
                select( $TempSelect );





Chris Sarnowski <[EMAIL PROTECTED]> 
11/09/2005 03:48 PM

To
[email protected]
cc

Subject
Re: Logging Question







On Nov 9, 2005, at 3:40 PM, Ian Harisay wrote:

> I would look to using Log::Log4perl for all your logging needs. 
> But for
> what you are doing try setting $| = 1 (autoflush).


and on Nov 9, 2005, at 3:38 PM, Chris Sarnowski wrote:
> This is a perl issue, not a DBI issue, but  try
>
> autoflush LOGF 1;
>
> after you open LOGF.
>
> This should force a flush after every print statement. If it 
> doesn't work I hope that at least it points you the right direction.

I hate to extend an off-topic thread too far, but
$| = 1
only works on the 'select'ed file handle (default STDOUT)

and for my suggestion, you need to

use FileHandle;

-Chris


Reply via email to