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?
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?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Removing Control Characters from a File
by Abigail-II (Bishop) on Jun 04, 2002 at 15:35 UTC | |
by jmcnamara (Monsignor) on Jun 04, 2002 at 22:57 UTC | |
Re: Removing Control Characters from a File
by Joost (Canon) on Jun 04, 2002 at 15:39 UTC | |
Re: Removing Control Characters from a File
by rbc (Curate) on Jun 04, 2002 at 16:15 UTC | |
Re: Removing Control Characters from a File
by Aristotle (Chancellor) on Jun 05, 2002 at 08:39 UTC | |
Re: Removing Control Characters from a File
by Anonymous Monk on Jun 04, 2002 at 23:18 UTC |
Back to
Seekers of Perl Wisdom