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

@{${${$foo}{bar}}{baz}};

Is a bullshit way of writing @{ $foo->{bar}{baz} }

Which is a darn sight nicer than this monstrosity $foo->{bar}->{barz}->@*;

Replies are listed 'Best First'.
Re^12: Experimental features: autoderef vs postfix deref
by Anonymous Monk on Jul 14, 2015 at 01:59 UTC
    Likewise, ${ $foo->{bar} }{baz} is also a darn sight nicer then the monstrosity $foo->{bar}->{baz}? If not, why?
      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;