Your logic ends up like this:
You can make it work correctly if you only do the renaming after you've finished with the directory's children. File::Find provides the bydepth option to do that. (Or alternatively, the finddepth() subroutine)
In reply to Re: File::Find and replacing spaces in filenames.
by Anonymous Monk
in thread File::Find and replacing spaces in filenames.
by Kyshtynbai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |