Just another Perl shrine | |
PerlMonks |
Re^2: The delay of printing encountered using loopby morgon (Priest) |
on Jun 25, 2012 at 23:35 UTC ( [id://978301]=note: print w/replies, xml ) | Need Help?? |
one nice thing about this approach is that you can specify how different file handles get flushed.I agree that using IO::Handle methods is nicer but just the approach with $| allows for the same granularity. It is not the case that setting $| to true turns on autoflushing for all file-handles. It only affects the file-handle that had been selected (or STDOUT when none had been explicitely selected). see "perldoc -f select"
In Section
Seekers of Perl Wisdom
|
|