I have a Perl script on Windows.
For some reason, Perl is automatically outputting CR LF (\x0d \x0a) when I only explicitly have when i only have \x0a in the string. Help! Driving me nuts.
open FH_temp, ">$tempfile" ;
open FH_input, "<$file";
$_ =~ s/[\x0a\x0d]//g; #remove all CR or LF
$_ = $_ . "\x0a"; #add LF
print FH_temp $_;