in reply to Write to filehandle without deleting current text
> overwrites existing file. Try >> to append to the file. If appending isn't satisfactory and you want to modify existing content you are going to have to go lower level. Open is no longer your friend. sysopen is the man for the job. perldoc -f sysopen should get you started.