Help for this page

Select Code to Download


  1. or download this
    >> ref={foo: {x:42}}
    Object { foo: {…} }
    ...
    42
    >> ref['foo'][bar]
    42
    
  2. or download this
    >> $ref={foo: {x:42}}
    Object { foo: {…} }
    
    >> $ref['foo'][$bar]
    42
    
  3. or download this
      DB<3> $ref = {foo=> { x => 42 } }
    
    ...
    42
      DB<6> p $$ref{foo}{$bar}
    42
    
  4. or download this
      DB<11> use experimental 'refaliasing'; \%ref = $ref
    
      DB<12> p $ref{foo}{$bar}
    42