in reply to Re^2: Infinity loop
in thread Infinity loop
If course if the body of your loop is really just ++$CG then all you are doing is counting the number of elements in the list. In that case the "pimply-goatse-operator" mentioned earlier in ths thread is what you want.for ( $_[0]->seq() =~ /CG/g ) { ++$CG }
|
---|