$foo =~ tr/\cM\cJ//d ; # remove all platforms version of a newline ..