http://www.perlmonks.org?node_id=1167461


in reply to Re^2: Removing Non-Ascii chars from text file
in thread Removing Non-Ascii chars from text file

See perlrun on what the switches do. For your case especially relevant is the -i switch, which takes an optional parameter.