Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: s/// only replacing most of the time...

by Thelonius (Curate)
on May 25, 2007 at 21:49 UTC ( #617615=note: print w/ replies, xml ) Need Help??


in reply to s/// only replacing most of the time...

Can you give an example where it's not doing what you want? Specifically can you include info like this:

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";
I had to delete the "e" from the "gemx" on the end of your substitution.


Comment on Re: s/// only replacing most of the time...
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://617615]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2014-08-02 04:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (54 votes), past polls