Re: $& and copying: rfc 158 (was Re: RFC 110 (v3) counting matches)
[email protected] (Mark-Jason Dominus)
| Newsgroups | perl.perl6.language.regex |
|---|---|
| Message-ID | <[email protected]> |
> in any case, i think we have a fair agreement on rfc 158 and i will
> freeze it if there is no further comments on it.
In light of this:
$& The string matched by the last successful pattern match (not
counting any matches hidden within a BLOCK or eval() enclosed
by the current BLOCK). (Mnemonic: like & in some editors.)
This variable is read-only and dynamically scoped to the
current BLOCK.
(perlvar)
I think you should remove the parts of your propsal about making $& be
autolocalized.
Thanks, Tom.