Syntactic Confectionery Delight | |
PerlMonks |
Re: The delay of printing encountered using loopby frozenwithjoy (Priest) |
on Jun 25, 2012 at 22:02 UTC ( [id://978292]=note: print w/replies, xml ) | Need Help?? |
Probably overkill for a one-liner, but for something longer you can control flushing with the flush/autoflush-related functions/methods from IO::Handle.
edit: one nice thing about this approach is that you can specify how different file handles get flushed. For example, auto-flushing log files only gives you up-to-date logs, but doesn't cause the performance penalty of auto-flushing file handles used for big data.
In Section
Seekers of Perl Wisdom
|
|