in reply to File::Find and replacing spaces in filenames.
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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File::Find and replacing spaces in filenames.
by Kyshtynbai (Sexton) on Dec 22, 2012 at 19:59 UTC | |
by AnomalousMonk (Archbishop) on Dec 22, 2012 at 22:48 UTC |