Using Perl rename to rename files and directories

I’m using the Perl rename command line tool to search recursively through a directory to rename any directories as well as files it finds. The issue I’m running into is the rename command will rename a sub-directory of a file then attempt to rename the parent directory of the same file. This will fail because the sub-directory has been renamed resulting in a “No such file or directory”

Manipulate file name piped from find command

I’m relatively new to Bash and am trying to do something that on the surface seemed pretty straightforward – run find over a directory hierarchy to get all of the *.wma files, pipe that output to a command where I convert them to mp3 and save the converted file as .mp3. My thinking was that the command should look like the following (I’ve left off the audio conversion command and am instead using echo for illustration):