in reply to Understanding a script that looks for mismatches to a regex

I don't know if will help you, but Dominus's excellent Higher-Order Perl (freely downloadable here) discusses a solution to a problem similar to yours in section 4.3.2 "Genomic Sequence Generator".

  • Comment on Re: Understanding a script that looks for mismatches to a regex