in reply to How to Rename files in multiple directories with a Perl script using an array of hashes.
The starting point would be to narrow down where the problem is occurring. I suggest printing the contents of @path directly after setting it, to understand whether the problem is in glob or in rename. If you can, show us what the actual output is with the real filenames.
If the result from glob looks correct, try testing the same filenames on a local filesystem, and try testing a simple file on the NTFS mount - it is possible that File::Rename is seeing a Linux system and making some Unix-centrix assumptions that aren't valid for NTFS.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to Rename files in multiple directories with a Perl script using an array of hashes.
by ObiPanda (Acolyte) on Jun 11, 2023 at 17:40 UTC | |
by choroba (Cardinal) on Jun 11, 2023 at 21:41 UTC | |
|
Re^2: How to Rename files in multiple directories with a Perl script using an array of hashes.
by ObiPanda (Acolyte) on Jun 11, 2023 at 18:37 UTC | |
by hv (Prior) on Jun 11, 2023 at 19:13 UTC | |
by ObiPanda (Acolyte) on Jun 11, 2023 at 20:54 UTC | |
by kcott (Archbishop) on Jun 11, 2023 at 20:01 UTC |