http://www.perlmonks.org?node_id=667268


in reply to Reading from a deleted file is futile

On Unix, as long as you have a filehandle open for the file, it will not actually be deleted. You will just remove the entry for it in the directory. That is, you should still be able to read from it, because the data doesn't get removed from the disk until the last open filehandle is closed.

Update: Perhaps this node will be informative as well.
  • Comment on Re: Reading from a deleted file is futile