or do this:
finddepth(\&rem_space, $dir);These both cause File::Find to go through all the items inside a directory before handling the directory itself (as described in its documentation) so you can rename without messing it up.
In reply to Re: Renaming Directories Recursively
by wog
in thread Renaming Directories Recursively
by blax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |