$line =~ s/\r?\n//; [download]
In reply to Re: Remove Carriage Return by sh1tn in thread Remove Carriage Return by icg