I had to delete the "e" from the "gemx" on the end of your substitution.print STDERR "\$hystackPatt[$j] = $haystackPatt[$j]\n"; print STDERR "\$rxHaystack[$j] = $rxHaystack[$j]\n"; print STDERR "BEFORE: \$text_seqs[$i] = $text_seqs[$i]\n"; $text_seqs[$i] =~ s{$rxHaystack[$j]}{<span class=$class[$a]>$1</span>} +gmx; print STDERR "AFTER: \$text_seqs[$i] = $text_seqs[$i]\n";
In reply to Re: s/// only replacing most of the time...
by Thelonius
in thread s/// only replacing most of the time...
by mdunnbass
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |