On 3/2/06, Edward WIJAYA <[EMAIL PROTECTED]> wrote: snip > $str = 'TTTCGG'; # (length 6) > $str_amb = '[TA]TTCGG'; # Ambiguous (length 6) > $d = 2; snip
I haven't read you question or code too closely, but given your choice of test data I assume you are working with DNA. You may wish to look at BioPerl (http://bioperl.org/wiki/Main_Page) and the Bio::* modules on CPAN. You may be trying to reinvent the wheel. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>