in reply to delete newly created files and directories leaving old ones

My instinct would have been to use File::Find and Array->diff(), but davidj's suggestion of File::Temp sounds like a better approach to the problem - even if you have to backtrack on your implementation (which presumably already creates the files and directories).

  • Comment on Re: delete newly created files and directories leaving old ones