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

Re: postfix dereference syntax

Thread Previous | Thread Next
From:
Father Chrysostomos
Date:
July 5, 2013 15:24
Subject:
Re: postfix dereference syntax
Message ID:
20130705152419.5072.qmail@lists-nntp.develooper.com
rjbs:
> Edge cases

If foo->@* means @foo, then does foo->@*[0] mean @foo[0]?  That is
useless if we have foo->@[0].

If we have foo->@[0] and extend it to all sigils, we end up with:

$_->*{foo} # means *$_{foo}
$_->${foo} # means $$_{foo} (i.e., $_->{foo})
$_->&(foo) # means $&_{foo} (i.e., $_->(foo))

The last two are useless.  The dollar form steals existing syntax.

> so that we can confidently turn it over to a volunteer (or
> conscript).

See sprout/postderef.  Caveat: It was late when I wrote it.


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