in reply to -e fails when file is proven to exist
You have the name of a directory in the scalar $newDir, and then you write -d {newDir}. What do you expect {newDir} to do? What if you write -d $newDir instead?
Improve your skills with Modern Perl: the free book.
|
|---|