Perl output buffering on files 2008-07-01 02:36pm
To turn off output buffering in Perl you just do:
To do it on an open filehandle (so the file gets written right away) you have to do:
Code:
$| = 1; |
To do it on an open filehandle (so the file gets written right away) you have to do:
Code:
open(LOG,">>$log"); LOG->autoflush(1); |