Re: problem with overlapping matches and while m//g

2002-09-29 Thread Sudarshan Raghavan
On Fri, 27 Sep 2002, nkuipers wrote: > Hello, > > I am trying to get the positions of every instance of a given substring within > a given superstring (DNA sequence), and currently have a > > while ( $super_string =~ m/${sub_string}/gi ) { ... } > > construct. > > I was under the impression

Re: problem with overlapping matches and while m//g

2002-09-27 Thread david
Nkuipers wrote: > Hello, > > I am trying to get the positions of every instance of a given substring > within a given superstring (DNA sequence), and currently have a > > while ( $super_string =~ m/${sub_string}/gi ) { ... } > > construct. > > I was under the impression that the regex transmi

problem with overlapping matches and while m//g

2002-09-27 Thread nkuipers
Hello, I am trying to get the positions of every instance of a given substring within a given superstring (DNA sequence), and currently have a while ( $super_string =~ m/${sub_string}/gi ) { ... } construct. I was under the impression that the regex transmission would bump along every charac