in reply to Re^11: Experimental features: autoderef vs postfix deref
in thread Experimental features: autoderef vs postfix deref

Likewise, ${ $foo->{bar} }{baz} is also a darn sight nicer then the monstrosity $foo->{bar}->{baz}? If not, why?

Replies are listed 'Best First'.
Re^13: Experimental features: autoderef vs postfix deref
by Anonymous Monk on Jul 14, 2015 at 02:05 UTC
    Because its not the top level entity.

    push array, value; template

    push @{ ... }, 4; Clear example;

    push $foo->{bar}->{baz}->%*, 4; ## WTF is that?

      What is special about toplevel? Does that only work for push or everywhere?

      lvalue = value; template

      ${ $foo->{bar} }{baz} = 4;

      $foo->{bar}->{baz} = 4;

        Does that template exist in the documentation? The one I cited does.

        Why not make your straw man ${ ${ $foo->{bar} }{baz} } = 4? A. Because that would be even more stupid.

        Why not just $foo->{bar}{baz} = 4; the way 90% of people write it? A. because that would highlight how verbosely hieroglyphic the postfix syntax is ->@*.