Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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

by Thelonius (Priest)
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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://617615]
[virtualsue]: holli about half
[choroba]: "Tatsächlich, das ist die Knochenstruktur eines Bettlers!" ??
shmem bows. Thank you
[marto]: slowclap.gif
[marto]: animated gif in question...
[1nickt]: Interesting article on the Coming Software Apocaplyse that I found while following one of eyepopslikeamosqui to's posts. Posits that no one can guarantee the quality of, or even understand, the 100 million lines of code in a mo
[holli]: you know, monk days are fun and all. but too many of them are bad for your health
[1nickt]: ...modern car. Suggests using TLA+ or other software modeling language to autogenerate code.
1nickt is not sure more and more layers separating the programmer from the program is the right way to go...
[holli]: happy one, shmem ;)

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2017-11-21 12:56 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (301 votes). Check out past polls.