in reply to AWTDI: Renaming files using regexp

For more complicated problems, including traversing whole directory trees, you might be interested in File::Wildcard, which can construct the destination filename for you out of regexp captures, $1, $2, etc.

--

Oh Lord, won’t you burn me a Knoppix CD ?
My friends all rate Windows, I must disagree.
Your powers of persuasion will set them all free,
So oh Lord, won’t you burn me a Knoppix CD ?
(Missquoting Janis Joplin)