That's interesting. I hardly ever think of using the string xor operator. Surely your solution can be golfed, though...
$ perl -alpE '$_=($F[0]^$F[1])=~tr{\0}{}' ATCGTCGAGCG ACGTCCTGTCG 4 ^D
In reply to Re^2: Array looping
by vrk
in thread Array looping
by Nansh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |