in reply to Re^4: No Substitution Happening
in thread No Substitution Happening

That above looks for the string inside the file, not changes the name.

No, it looks for the string inside the filename. The substitution operator acts on strings, not files, not filenames, etc. If you want to look inside the file, you need to open it. If you want to rename the file, see perldoc -f rename.