Removing new line / EoL characters in a PERL script
Use either of the two methods (probably more) of removing new line characters from an input in a perl script
Code:
my $line = "This contains a new line. \r\n";
chomp($line);
or
Code:
my $line = "This contains a new line. \r\n";
$line =~ .s/[\x0A\x0D]//g;