http://qs321.pair.com?node_id=171508

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

Hi,
I'm receiving a data file which I am reading in line by line which has a few embedded ^X's (Ctrl-X's) this causes the script reading from the file to stop reading the file after it has encountered the first line with one of these. Right now I replaced them with spaces in VIM however in the future I'd like to be able to automate this process and do it with Perl. I was just thinking a Signal handler might be the way to go but I don't know where to begin exactly, any suggestions?