in reply to How to Rename files in multiple directories with a Perl script using an array of hashes.

Glob is not my friend.

Yes, it often isn't - see To glob or not to glob. In this case I would recommend Path::Class instead, its Path::Class::Dir ->children and ->recurse methods are useful in listing files, and its Path::Class::File ->move_to uses File::Copy internally.

  • Comment on Re: How to Rename files in multiple directories with a Perl script using an array of hashes.
  • Select or Download Code