title: In Perl, how to remove ^M from a file?
body: <p>I have a script that is appending new fields to an existing CSV, however <code>^M</code> characters are appearing at the end of the old lines so the new fields end up on a new row instead of the same one. How do I remove <code>^M</code> characters from a CSV file using Perl?</p>