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 }
In reply to Re^3: Infinity loop
by nobull
in thread Infinity loop
by doob
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |