#!usr/bin/env perl open (test, "@ARGV"); while () { $_ =~ ; chomp; s/(th)/TH/gi; print "$_\n"; } close (test);