in reply to Re^3: Finding out whether two directories are the same (insert)
in thread Finding out whether two directories are the same

You should not forget to check, if the file creation was successful. If you don't have permission to create the file and you don't check that, your check for existence might lead to a wrong conclusion!

  • Comment on Re^4: Finding out whether two directories are the same (insert)

Replies are listed 'Best First'.
Re^5: Finding out whether two directories are the same (insert)
by rovf (Priest) on Aug 29, 2008 at 07:53 UTC
    You should not forget to check, if the file creation was successful.

    If I use File::Temp::tempfile, this throws an exception if it can't create the file, so checking must be done by wrapping it into an eval block and testing $@ afterwards.

    -- 
    Ronald Fischer <ynnor@mm.st>