while (<>) { s/\cX//g; # removes ^X's s/\cM//g; # removes ^M's ... } [download]
In reply to Re: Removing Control Characters from a File by rbc in thread Removing Control Characters from a File by Banky