develooper Front page | perl.perl6.language | Postings from May 2005

Re: Numification of captured match

Thread Previous | Thread Next
From:
Larry Wall
Date:
May 12, 2005 21:13
Subject:
Re: Numification of captured match
Message ID:
20050513041314.GD26204@wall.org
On Fri, May 13, 2005 at 02:00:10PM +1000, Damian Conway wrote:
: >Actually, it's not clear to me offhand why @1 shouldn't mean $1[]
: >and %1 shouldn't mean $1{}.
: 
: It *does*. According to the recent capture semantics document:
: 
:    > Note that, outside a rule, C<@1> is simply a shorthand for C<@{$1}>,
: 
: and:
: 
:    > And, of course, outside the rule, C<%1> is a shortcut for C<%{$1}>:

In that case it's very much less clear to me why it shouldn't mean that.  :-)

Larry

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About