Perl output buffering on files

To turn off output buffering in Perl you just do:

$| = 1;

To do it on an open filehandle (so the file gets written right away) you have to do:

open(LOG,">>$log");
LOG->autoflush(1);


Note: Replies will be formatted with PHP Markdown Extra syntax.

Name: Email (Not Required):
 
Logged IP: 18.118.120.204
To prevent spam please submit by clicking the kitten: