This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Postfix dereference syntax
authorFather Chrysostomos <sprout@cpan.org>
Fri, 5 Jul 2013 08:10:08 +0000 (01:10 -0700)
committerRicardo Signes <rjbs@cpan.org>
Sat, 5 Oct 2013 18:20:08 +0000 (14:20 -0400)
commit89f3591148a8f1ca21a2faaed697cfa194632816
tree84359a06a80f5705c64334235f13c85f191c3462
parentb9ff0c4900019af7a99b75cd3befc2a4b62c4321
Postfix dereference syntax

$_->$* means $$_ (and compiled down to the same op tree)
$_->@* means @$_ ( ditto ditto blah blah blah          )
$_->%* means %$_ (...)
$_->&* means &$_
$_->** means *$_
$_->@[...] means @$_[...]
$_->@{...} means @$_{...}
$_->*{...} means *$_{...}

$_->@* is not always equivalent to @$_, particularly in contexts like
@foo[0], which cannot be written foo->@*[0].  (Just omit the asterisk
and it works.)
perl.h
perly.act
perly.h
perly.tab
perly.y
toke.c