Re: RFC 331 (v2) Consolidate the $1 and C<\1> notations

[email protected] (Dave Storrs) Mon, 2 Oct 2000 12:46:06 -0700 (PDT)
Newsgroups perl.perl6.language.regex
Message-ID <Pine.BSF.4.10.10010021239360.14707-100000@megazone23.bigpanda.com>

On Sun, 1 Oct 2000, Bart Lateur wrote:

> It's not clear to me why you picked @/ as the name for the array. For
> mnemonic reasons, i.e. similarity with existing special variables, @& or
> @+ (see $& and $+) would make more sense. Well, @+ is taken...


	Well, the main reason is that @/ worked best for my particular
brain.

	If you want another reason...well, @+ is taken, as you say, and @&
wouldn't be quite the right match...after all, $& contains the _string_
that was last matched, while @/ contains the pattern and all the
subelements that matched, but does not actually contain the entire matched
string (unless you explicitly capture it, of course).

				Dave