Thanks to all who weighed in on this. I have learned a lot. Judging by the tone of many of the replies, some will be glad to hear that I have started using "strict" (at least some of the time).
However, it turns out that the real problem was that I was mixing Perl functions for file operations with Win command lines executed via qx. What I had not considered (and learned) was that qx actions go through the Win command line interpreter, but the Perl functions, in particular, the -x tests, do not. The difference is, of course, that path/file names with spaces get chopped up by the CLI and thus required enclosing Dquotes, but work fine in the -x tests, in which case, the Dquotes mess things up.
I am now using the Perl file operations in Win32::File and Win32::CopyFile and nearly everything is working. A little more clean-up and the job will be done.
Again, thanks for all the help.
Lloyd.
In reply to Re^2: Win file/dir names w/spaces
by LloydRice
in thread Win file/dir names w/spaces
by LloydRice
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |