in reply to noobie control char removal

I think you could use a reg ex.
Do you know what the codes are? If its only a few expected ones you can just substitute them out.
or possibly something like this (untested)
s/[:cntrl:]//g;
check perlre for more info

Replies are listed 'Best First'.
Re^2: noobie control char removal
by desertman (Acolyte) on Nov 18, 2009 at 23:41 UTC
    I tried that, it took out all the c,n, t, r characters.
      He meant
      s/[[:cntrl:]]//g;

      POSIX classes must be used inside a regex character class.

      Can you edit your post to add the data you are having trouble with?
      Also you can try the unicode version;
      s/\p{IsCntrl}//g;