in reply to Renaming Directories Recursively
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.
|
|---|