Both \1 and $1 refer to what is matched by the first set of parens in a regex. AFAIK, the only difference between these two notation is that \1 is used within the regex itself and $1 is used outside of the regex. Is there any reason not to standardize these down to one notation (i.e., eliminate one or the other)? Dave
- RFC 279 (v1) my() syntax extensions and attribute decl... Perl6 RFC Librarian
- Re: RFC 279 (v1) my() syntax extensions and attri... Alan Gutierrez
- Re: is \1 vs $1 a necessary distinction? Dave Storrs
- Re: is \1 vs $1 a necessary distinction? Jonathan Scott Duff
- Re: is \1 vs $1 a necessary distincti... Dave Storrs
- Re: is \1 vs $1 a necessary distincti... Randal L. Schwartz
- Re: is \1 vs $1 a necessary distincti... Bart Lateur
- Re: is \1 vs $1 a necessary distinction? Michael Maraist
- Re: is \1 vs $1 a necessary distinction? Uri Guttman
- Re: RFC 279 (v1) my() syntax extensions and a... Nathan Wiger