in reply to Re^4: Ignore given character from file
in thread Ignore given character from file

from your last explanation I know now that it will read 1 char before c but I must ask how can you tell it to read until ".c" not "c"

See perlrebackslash

I would like to replace the text in the file with blank not with a space.

See chomp