Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Modules to reduce syntax?

by LanX (Sage)
on Dec 22, 2021 at 14:44 UTC ( #11139833=note: print w/replies, xml ) Need Help??

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
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11139833]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2022-09-30 08:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (125 votes). Check out past polls.

    Notices?