I am interested in how I can make autoflush a default behaviour for all of the filehandles I open
Put this somewhere at the beginning of your program:
$|++;
Setting $| to a non-zero value forces a flush right away and after every write or print on the currently selected output channel. IO::Handle makes use of $| as well.
-- Kirill
In reply to Re: flushing by default
by kirillm
in thread flushing by default
by spx2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |