develooper Front page | perl.perl5.porters | Postings from August 2013

Re: postfix dereference syntax

Thread Previous | Thread Next
From:
Johan Vromans
Date:
August 15, 2013 17:42
Subject:
Re: postfix dereference syntax
Message ID:
m28v02q29s.fsf@phoenix.squirrel.nl
Eric Brine <ikegami@adaelis.com> writes:

> This features allows code to be placed where it's performed instead of far
> in advance.
>
> @{${$h{a}[0]}
>
> vs
>
> $h{a}[0]->@*

It still escapes me why @* was chosen instead of the much more logical
[] :

 $h{a}[0]->[]

> (btw, can that arrow be omitted?)

This would have been an unnecessary question...

-- Johan

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