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

Re: postfix dereference syntax

Thread Previous | Thread Next
David Nicol
August 14, 2013 21:31
Re: postfix dereference syntax
Message ID:
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

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About