http://www.perlmonks.org?node_id=11152753


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.