polsum has asked for the wisdom of the Perl Monks concerning the following question:
file 1: xxtcgtatccgaggga cgcgcgggggagg jjsjjjjsjjjdtcgtat aaaaaaacccaaan ggtcgtatffaadda gggctggalllslllssdkk
I want to 1) match each element of file2 to each element of file1. 2) delete all the matched alphabets and subsequent letters in the element of file1. so the output should befile 2: tcgtat gctgga
I tried with regular expressions but couldnt figure out how to match elements of one array with another array. If possible please provide the code in perl because I just started learning perl. thanks in advancexx cgcgcgggggagg jjsjjjjsjjjd aaaaaaacccaaan gg gg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: array matching
by ww (Archbishop) on Sep 09, 2011 at 18:13 UTC | |
|
Re: array matching
by CountZero (Bishop) on Sep 09, 2011 at 21:32 UTC | |
by Anonymous Monk on Sep 09, 2011 at 23:35 UTC | |
|
Re: array matching
by Kc12349 (Monk) on Sep 09, 2011 at 19:09 UTC |