Well then, just take the code, take out the rmdir, and put in a rename. What? Are we supposed to write all your code for you? Just setup a test dir/subdir setup, and try renaming, with finddepth, instead of find. Also Google for "File::Find rename dirs"
| [reply] [Watch: Dir/Any] |
oh, not at all. I'm quite surprised that after an hour googling I haven't found any ready solution for this problem. Perl has been one of the "big" programming languages for decades and there is no "quick" solution for this simple (for experienced programmer) problem.
| [reply] [Watch: Dir/Any] |
| [reply] [Watch: Dir/Any] |