in reply to Remove newline between strings

A better description and sample code would help us better understand your question.

However, maybe this:

chomp $string1; chomp $string2;

If you are looking to remove embedded newlines:

$string1 =~ s/[\r\n]+//g;

will remove any of the most common line terminators found in text files.