good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: -e fails when file is proven to existby Eliya (Vicar) |
on Mar 08, 2012 at 20:33 UTC ( [id://958532]=note: print w/replies, xml ) | Need Help?? |
Also (in addition to what chromatic said), I don't think you want the double quotes to be part of $newDir. Perl's built-in -d isn't parsed/executed via some shell, and thus doesn't need the quotes to keep both space-separated parts of the directory name together. As you have it, the quotes are considered part of the name itself.
In Section
Seekers of Perl Wisdom
|
|