in reply to similar string matching
$x = "MAAGAAAAFAAAATTTTTTTTFTTTTTTTTTTTTAAAAEAAAARAAAAAA"; $y = "TTTTTTTTFTTTTTTTTTTTT"; if ($x =~ /$y/o) {print "the second amino acid is in the first";} if ($y =~ /$x/o) {print "the first amino acid is in the second";}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: similar string matching
by Murcia (Monk) on Jul 05, 2004 at 09:15 UTC |