in reply to "double buffered" file overwrite (like rsync)
Erm, what of the combination of File::Temp and rename doesn't do what you need?
The cake is a lie. The cake is a lie. The cake is a lie.