while () { $_ =~ ; chomp; s/(th)/TH/gi; print "$_\n"; } #### while () { s/th/TH/gi; print; }