in reply to Re^2: Not A Rockstar File Manipulator Today
in thread Not A Rockstar File Manipulator Today

Inline debugging is really, really helpful in cases like this. You might also want to change the

print OUT $_;
to
print ;
to print your lines on the screen.

And for a sanity check, you might put something like:

print "\$in_file: $in_file \n"; print "\$out_file: $out_file \n"; print "\$pattern : $pattern\n"; print "\$replacement: $replacement\n";
before your open commands. Just to make sure you're opening the file(s) you think you're opening.