Or you can remove all line separators from the line (and then adding one at the end again if needed):
$line =~ s/[\r\n]//g;
In reply to Re: issue with LF & CRLF
by Laurent_R
in thread issue with LF & CRLF
by nafri
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |