my @line1 = qw(C A B G F E); my @line2 = qw(D B F); my $line1 = join '', @line1; my $line2 = join '', @line2;
The first string would be CABGFE and the second DBF
I either want to find what is similar or what is different between the two strings. In this case BF would be what is similar and CAGED would be what is different
In reply to Is there a way to compare strings without using an array? by Jeri
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |