hello everyone
can anyone suggest me the perl code for comparing two sequences by each character wise and to print the characters which are not matched .... can anyone give me a hint on this
Hi,
Maybe you can give us a hint on what you want to do with the sequences. What do you want to do with them once you hit a non-match? Consider the following sequences and give us a clue.
-
abcdefghihk
-
abc123defghihk
-
-
abcdefghihk
-
abcd1e2f3ghihk
-
What would you want the outputs to be from these? Would you want to handle them differently? Would you want to handle them the same? Why?
Your question may or may not involve some pretty sophisticated pattern matching algorithms. There's no way we can answer without more thought and input from you. There simply is no "the perl code" to do something as undefined as your question. I'm not trying to be a wise-guy or to be mean to you, but so far your question is just not adequate as a software specification. Right now, the best we can possibly do for you is to try to help guide you to a better question.
If my example sequences are helpful in doing that, good. If they are not, then maybe you can use my poor examples to help you construct better examples, but we need better examples to construct an idea of what you want. Once we can all reach an answer to what you want then (and only then) can we sensibly try to do it in perl (or anything else).
Best Regards,
Paul