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

Rather than wrestle with the glob() function's semantics around spaces, you might want to consider using bsd_glob() instead. This is exported by File::Glob, which is a core module. The bsd_glob() function takes all the meta-characters (?, *, [...], and {...,...}) but treats a space as a normal character.

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