In perl.git, the branch sprout/postderef has been created

<http://perl5.git.perl.org/perl.git/commitdiff/b7c92b414cbf3f31686a121078d99cc1143dcfd5?hp=0000000000000000000000000000000000000000>

        at  b7c92b414cbf3f31686a121078d99cc1143dcfd5 (commit)

- Log -----------------------------------------------------------------
commit b7c92b414cbf3f31686a121078d99cc1143dcfd5
Author: Father Chrysostomos <[email protected]>
Date:   Fri Jul 5 01:10:08 2013 -0700

    Postfix dereference syntax
    
    Barely tested.
    
    $_->$* means $$_ (and compiled down to the same op tree)
    $_->@* means @$_ ( ditto ditto blah blah blah          )
    $_->%* means %$_ (...)
    $_->&* means &$_
    $_->** means *$_
    $_->@[_] means @$_[_]
    $_->@{_} means @$_{_}
    $_->&*() means &$_(), which means $_->() (pointless)
    
    I forgot $_->*{HASH}.
    
    $_->@* is not always equivalent to @$_, particular in contexts like
    @foo[0], which cannot be written foo->@*[0].  (Just omit the asterisk
    and it works.)
-----------------------------------------------------------------------

--
Perl5 Master Repository

Reply via email to