Jul 3, 2016, 8:27 AM
You can't use the same variable for the filehandle that you used to store the filename.
Re: [G_Ranger] Regex search and replace
Change that line to this:
open my $out_fh, ">:encoding(utf-8)", $out_file or die "unable to open $out_file for writing! <$!>";
You'll also need to update the other lines that use that filehandle.
(This post was edited by FishMonger on Jul 3, 2016, 8:28 AM)