ruqui has asked for the wisdom of the Perl Monks concerning the following question:
The above fails as well as this one:#!/usr/bin/perl use File::Copy; $src = "c:\\temp (1)J"; for $f (glob("$src\*")) { move($f, "\out"); }
Any ideas of how to solve this?#!/usr/bin/perl use File::Copy; $src = "c:\temp (1)"; opendir DIR, $src; while ($f = readdir(DIR)) { move("$src\$f", "\out"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using File::Copy move() in Windows directories containing parentheses
by Athanasius (Archbishop) on Feb 04, 2017 at 04:12 UTC | |
|
Re: using File::Copy move() in Windows directories containing parentheses (Path::Tiny)
by beech (Parson) on Feb 04, 2017 at 07:52 UTC | |
by ruqui (Acolyte) on Feb 04, 2017 at 13:09 UTC |