arcnon has asked for the wisdom of the Perl Monks concerning the following question:

I have a characacter in a file that reads CA in a hex editor. It isn't multibyte.

what is the easiest way to replace it. I am using plain ol open

open(F, "test.txt")

Retitled by Steve_p from 'grep 'clear' characters'.

Replies are listed 'Best First'.
Re: Matching and replacing hex characters
by borisz (Canon) on Feb 07, 2005 at 02:21 UTC
    perl -pe 'y/\xca/?/' <your_data >your_replaced_data
    Boris
      =~s/\xca//g;

      did the trick thanks