in reply to Rename a directory!!

Please go read How to RTFM. It will guide you to the many vast perl resources available at your fingertips, especially since lots of your questions have been FAQ lately