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

Re: postfix dereference syntax

Thread Previous | Thread Next
From:
David Nicol
Date:
August 14, 2013 21:31
Subject:
Re: postfix dereference syntax
Message ID:
CAFwScO9p7TYfMcXC_2s5eHfOPuqBkyxqiScMqx4+w-CXy3xTwQ@mail.gmail.com
it's not about $foo->@*
it's about $foo->{bar}->baz(27, flurg => gnar_now())->[4]->@*

at the end of a long chain of stuff eventually yielding a reference,
sometimes you want to get the whole array, or a slice of it, and currently
you need to back up and enclose the whole thing.

What we've just set up is the filling of the holes left in the current
incomplete postfix dereference syntax, which allows only scalar element
accesses.
‚Äč

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