Well, you're printing out the error message, so don't keep it to yourself - tell us exactly what it says.
I don't know much about Windows, but I suspect that printing the $dir variable in the error message (as you do) will give you a clue as to what is going wrong.
Have you trying putting your directory name in single quotes? Does that make any difference? The backslash character has a special meaning in double quotes[1].
[1] Yes, it has a special meaning in single quotes too. But it's _less_ special :-)
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: directories with spaces
by davorg
in thread directories with spaces
by dhjackal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |