I have two sequences stored in two arrays as shown below:
@seq1 = "ATGC TGCT GCTA CTAA TAAC"
@seq2 = "GTCA"
i want to compare string in @seq2 with each and every words in @seq1 and need to print the position and no of mismatches at that position.
For example in the first index while comparing ATGC with GTCA there are 3 mismatches, and in the second index while comparing TGCT with GTCA there are 3 mismatches and so on.
It would be grateful if anyone show me the code to do the above process. Thank you..