in reply to making sure a file is not currently being written to
though they should be closed implicitly anyway, shouldn't they,
Only if you use lexical variables as file handles. If you use open HANDLE, '>', $file;, then HANDLE is a global that doesn't go out of scope.
When a file is closed, it should be written to disk immediately (well, the OS can still cache it, but it has to do it transparently).
What you describe here should never happen, so if you can reproduce this behaviour in a small, self-contained script, please file a bug report.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: making sure a file is not currently being written to
by Corion (Patriarch) on Jun 05, 2008 at 13:47 UTC | |
by moritz (Cardinal) on Jun 05, 2008 at 13:57 UTC | |
Re^2: making sure a file is not currently being written to
by why_bird (Pilgrim) on Jun 05, 2008 at 14:21 UTC |
In Section
Seekers of Perl Wisdom