So finally, $str =~ s/\n/ /g; removes \n. Does it remove EOF, too? If so, how to avoid?
In reply to Re^6: Reg exp questions by carolw in thread Reg exp questions by carolw