We don't bite newbies here... much | |
PerlMonks |
Re^4: Splitting a Blocked file in Round Robin into smaller filesby BrowserUk (Patriarch) |
on Dec 14, 2015 at 17:39 UTC ( [id://1150255]=note: print w/replies, xml ) | Need Help?? |
Would the flush happen regardless? Wrong question. The one you should be asking yourself is: why do you feel the need to to defeat the whole purpose of buffered IO? Is your hardware so unreliable or your code so flaky? Beside which your efforts are of limited benefit as every modern OS also buffers files in the system cache anyway. In the very rare circumstances that you have a real reason to avoid buffered IO, why not just set autoflush on the file handle with IO::Handle::autoflush() Or do it manually with IO::Handle::flush() within the loop. Forcing the system to keep opening and closing the files in order to achieve flushing, all for very limited benefit and no good reason, is very silly and hugely expensive. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|