I did not know there was a difference between \1 and $1 inside a regular expression

OK, I'll bite :-) I know that \1 can appear in the match (left) part of a substitution (s///) but $1 can only appear in the replacement. Are there other differences?


In reply to Re: YAPC::NA::2003::mandog by grantm
in thread YAPC::NA::2003::mandog by mandog

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":