while ( my $line = ) { $line =~ s/^\x{FEFF}//; print OUT $line;