in reply to using File::Copy move() in Windows directories containing parentheses
Hello ruqui,
The glob problem can be solved by adding another level of quotes:
for my $f (glob(qq["$src\\*"])) {
as explained in the documentation:
Note that glob splits its arguments on whitespace and treats each segment as separate pattern. ... If you want to glob filenames that might contain whitespace, you'll have to use extra quotes around the spacey filename to protect it.
Note also that inside double quotes, a single backslash combines with the immediately-following character to create an escape sequence. So if you want a literal backslash, you must either double the backslash ("\\out") or use single quotes ('\out').
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
|
|---|