At 7:40 PM -0500 3/21/10, Harry Putnam wrote:
Linux Expert <[email protected]> writes:
Again... appears to work.
However the log file takes quite a long time to starting showing any
action, and then stay well behind the console output.
Try adding the following line after your 'use warnings' line:
$|++;
That will disable output buffering on the currently-selected
filehandle (STDOUT be default).
Doesn't appear to make any difference whatever.
You need to select the logger file before executing $|++:
select LOGNAME;
$|++;
select STDOUT;
See the advice given by 'perldoc -q flush' "How do I flush/unbuffer
an output filehandle?
--
Jim Gibson
[email protected]
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/