Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
There will be dozens more than this but these three lines have to be slurped and removed from another text file. The main issue here is speed because if this junk file contains 40+ different strings and it has to remove as many occurences as it can for each of these in a 20k line file, it could take a while, right?First Appeared in the Akron Beacon Journal (Ohio) Email to friend Get a Map | Get Directions
In short, I need to read from junk.txt and be able to use each line as a new substitution to remove them from source.txt
Thank you wise monks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: file substitution
by Zaxo (Archbishop) on Jun 04, 2004 at 18:48 UTC | |
|
Re: file substitution
by McMahon (Chaplain) on Jun 04, 2004 at 18:14 UTC | |
|
Re: file substitution
by MidLifeXis (Monsignor) on Jun 04, 2004 at 18:32 UTC | |
by BrowserUk (Patriarch) on Jun 04, 2004 at 18:56 UTC | |
by Berik (Sexton) on Jun 04, 2004 at 18:46 UTC | |
|
Re: file substitution
by TomDLux (Vicar) on Jun 05, 2004 at 00:29 UTC | |
by BrowserUk (Patriarch) on Jun 05, 2004 at 00:57 UTC |