$ touch foo # Create a file. $ rm -rf foobar # Assure that the foobar directory doesn't exist. $ perl -MFile::Copy=move -E 'move("foo", "foobar/foo") or die $!' # Test a move into a directory that doesn't exist. # No such file or directory at -e line 1. ls foo # Assure the original file still exists. # foo