On 28 Sep 2000 20:57:39 -0000, Perl6 RFC Librarian wrote:
>Currently, C<\1> and $1 have only slightly different meanings within a
>regex. Let's consolidate them together, eliminate the differences, and
>settle on $1 as the standard.
I wrote this before, but apparently you didn't hear it. Let me repeat:
$foo on the LHS allows metacharacter matching, for example "a.*b" can
match "a foo b". But \1 only allows literal strings. If $1 captured
"a.*b", then \1 will only match the literal string "a.*b", as if the
regex contained "a\.\*b".
I don't see how you can possibly consider this a "tiny difference".
--
Bart.
- RFC 331 (v1) Consolidate the $1 and C<\1> notati... Perl6 RFC Librarian
- Re: RFC 331 (v1) Consolidate the $1 and C<\1&g... Jonathan Scott Duff
- Re: RFC 331 (v1) Consolidate the $1 and C<... Piers Cawley
- Re: RFC 331 (v1) Consolidate the $1 and C<\1&g... Hugo
- Re: RFC 331 (v1) Consolidate the $1 and C<... Dave Storrs
- Re: RFC 331 (v1) Consolidate the $1 and C<\1&g... Nathan Wiger
- Re: RFC 331 (v1) Consolidate the $1 and C<\1&g... Hildo Biersma
- Re: RFC 331 (v1) Consolidate the $1 and C<... Dave Storrs
- Re: RFC 331 (v1) Consolidate the $1 and C<\1&g... Bart Lateur
- Re: RFC 331 (v1) Consolidate the $1 and C<... Dave Storrs
- Re: RFC 331 (v1) Consolidate the $1 and C<\1&g... Bennett Todd
