On Tue, Sep 11, 2007 at 11:54:29AM -0700, [EMAIL PROTECTED] wrote: > =item * > > @@ -778,7 +777,7 @@ > However, a variable used as the left side of a binding or submatch > operator is not used for matching. > > - $x := <ident> > + $x = <ident> > $0 ~~ <ident> > > If you do want to match C<$0> again and then use that as the submatch, > @@ -788,7 +787,11 @@ > > It is non-sensical to bind to something that is not a variable: > > - "$0" := <ident> # ERROR > + "$0" = <ident> # ERROR > + > +Variables used in bindings are lexically scoped to the rest of the regex. > +If the match succeeds they are remembered in the C<Match> object's hash, > +with a key corresponding to the variable name without the sigil.
I see that you've changed all the examples to use C<=> rather than C<:=> so I infer that now binding, rather than assignment, is the default (if not the only way) inside a rule. But text describing that alteration wasn't in this change. When was it? I think I missed something. Nicholas Clark