>> ref={foo: {x:42}} Object { foo: {…} } >> bar="x" "x" >> ref.foo[bar] 42 >> ref['foo'][bar] 42 #### >> $ref={foo: {x:42}} Object { foo: {…} } >> $ref['foo'][$bar] 42 #### DB<3> $ref = {foo=> { x => 42 } } DB<4> $bar = "x" DB<5> p $ref->{foo}{$bar} 42 DB<6> p $$ref{foo}{$bar} 42 #### DB<11> use experimental 'refaliasing'; \%ref = $ref DB<12> p $ref{foo}{$bar} 42