in reply to Re^4: Overwriting temp file
in thread Overwriting temp file

Seek was good idea.

My demo program needed seek because I did not want to touch the filesystem, so I used in-memory filehandles, and passed the filehandle around

You don't need to use seek, it does nothing for you