produces moobaryou in $dmy($a, $b, $c, $d) = qw{foo bar moo moofooyou); $d =~ s/(?<=$c)$a/$b/g;
In reply to Re: How do i find $a and replace it with $b when it's preceded by $c?
by nuance
in thread How do i find $a and replace it with $b when it's preceded by $c?
by whahoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |