in reply to Re^3: Matching Character Patterns With Backreferences
in thread Matching Character Patterns With Backreferences

Are you sure? I believe it's the other way around; you should use $1 and friends on the right hand side of the s/// operator. That's what the warning in perlre is about, anyway.

Replies are listed 'Best First'.
Re^5: Matching Character Patterns With Backreferences
by BUU (Prior) on Dec 07, 2004 at 04:13 UTC
    What? Yes I'm sure. Of course you should use $1 on the right hand side of the s/// operator, as thats merely a double quoted string. The warning in perlre is regards to using \1 on the right hand side, which only works because of a hack.
      Gah, yes, of course. A thinko on my part.