s/[\n\r]//g; # suggested by moritz tr/\n\r//d; # does the same #### tr/\n\r/ /;