Keep It Simple, Stupid | |
PerlMonks |
Re: File::Find and replacing spaces in filenames.by Anonymous Monk |
on Dec 22, 2012 at 19:11 UTC ( [id://1010039]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|