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).
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, butautoflush 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.
$| = 1
only works on the 'select'ed file handle (default STDOUT)
and for my suggestion, you need to
use FileHandle;
-Chris