in reply to Need assistance updating text files with Perl

My script runs without error but is not making changes to the files that it finds.

single quotes do not interpolate, so print '$filename' literally prints $filename where you wanted /dir/etc-test.... See perlintro. As a rule only use quotes for creating new strings, so

open my( $FR ), '<', $filename ...

And, it is not renaming any files to .bak

Using $^I only works with magic filehandle, see perlrun -i, $^I why this symbol does not work ?