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.
In reply to Re: Remove newline between strings
by RonW
in thread Remove newline between strings
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |