in reply to Re^2: Shorter/Better way to rename list of files in a directory
in thread Shorter/Better way to rename list of files in a directory

... And rightfully so. You misspelled filesList (or fileList). You tell Perl you want to use a variable named @filesList in
my @filesList = ...
But then use a different, undeclared name. Because you are using the "strict" pragma, Perl knows that you want to be notified of such spelling errors.