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

Re: postfix dereference syntax

Thread Previous | Thread Next
From:
Kent Fredric
Date:
July 3, 2013 15:56
Subject:
Re: postfix dereference syntax
Message ID:
CAATnKFC-CD5XnpEjcfroZnda03dhgNmjVOwCLPMwE_pdP-6kWg@mail.gmail.com
On 4 July 2013 03:09, Aristotle Pagaltzis <pagaltzis@gmx.de> wrote:
> $foo->bar->baz->{qw( foo bar baz )}

Well, assuming you turned on the ability to use

- new deref syntax
- new slice syntax

If they eventually arrived together as one feature ( which I see it
possible of doing ), you could control their scope with a lexical
pragma, a lexical pragma that disabled multidimensional arrays at the
same time.

And there is already a cpan module that does the latter =).

https://metacpan.org/module/multidimensional # ilmari++



-- 
Kent

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