In a substitution expression, you should rather use $1.DB<1> $c = "The black dog and the black cat"; DB<2> print "Matched" if $c =~ /(bl..k).+\1/; Matched
In reply to Re: Substitution backreference woes
by Laurent_R
in thread Substitution backreference woes
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |