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

Re: postfix dereference syntax

Thread Previous | Thread Next
Father Chrysostomos
July 5, 2013 15:24
Re: postfix dereference syntax
Message ID:
> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About