emdub has asked for the wisdom of the Perl Monks concerning the following question:
I have a very specific need and I have just enough knowledge to make me dangerous, but not enough to put that lethality to good use. What I need to do is take a string from one file, file1.txt for example, and remove any shared letters with a string from another file, file2.txt for example. And then do the same for the string in file2.txt.
Sample Input:
File1.txt: CHARLIE ROOTIn the above the letters shared between the two strings are removed and the resulting combined string is printed out. I have about 300 lines per file. Can someone help?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mostly Harmless
by Athanasius (Archbishop) on Dec 28, 2013 at 06:28 UTC | |
by atcroft (Abbot) on Dec 28, 2013 at 08:06 UTC | |
|
Re: Mostly Harmless
by CountZero (Bishop) on Dec 28, 2013 at 10:07 UTC | |
|
Re: Mostly Harmless
by GrandFather (Saint) on Dec 28, 2013 at 09:07 UTC | |
|
Re: Mostly Harmless
by Lennotoecom (Pilgrim) on Dec 28, 2013 at 11:26 UTC | |
|
Re: Mostly Harmless
by kcott (Archbishop) on Dec 29, 2013 at 00:26 UTC |