Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: printing to filehandlesby Roger (Parson) |
on Sep 02, 2005 at 10:54 UTC ( [id://488610]=note: print w/replies, xml ) | Need Help?? |
You have to flush your file handle after printing to write to the disk immediately, otherwise it gets conveniently buffered in memory.
The alternative is to close the file after you have finished reading, and open it again next time before writing to it. Keep the time that the file is openned as short as possible.
In Section
Seekers of Perl Wisdom
|
|