Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I tried to make a script which would take in the input file one line at a time, and look for words which contained funky (i.e. non-alphanumeric, non-common punctuation) characters. These words would then be replaced with null, and the new line dumped to an output file. Although this was successful in removing most of the garbage from the text file, it still left about 20%
Does anyone have any suggestions as to how this could be accomplished? It seems like such a simple task, but I've only started in Perl a short while ago.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Removing Junk from Files
by physi (Friar) on Apr 12, 2001 at 11:07 UTC | |
by Beatnik (Parson) on Apr 12, 2001 at 13:40 UTC | |
|
Re: Removing Junk from Files
by RhetTbull (Curate) on Apr 12, 2001 at 19:12 UTC | |
by idnopheq (Chaplain) on Apr 12, 2001 at 19:27 UTC | |
|
Re: Removing Junk from Files
by idnopheq (Chaplain) on Apr 12, 2001 at 19:19 UTC |