Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: 5.26 sigil reference syntax in subfunction

by kcott (Bishop)
on Nov 01, 2017 at 04:35 UTC ( #1202493=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -MO=Deparse -e '$$hash{"key1"}{"$var2"} = $value'
    $hash->{'key1'}{"$var2"} = $value;
    ...
    $ perl -MO=Deparse -e '$$hash->{"key1"}->{"$var2"} = $value'
    $$hash->{'key1'}{"$var2"} = $value;
    -e syntax OK
    
  2. or download this
    $ perl -MO=Deparse -e '$hash->$*->{"key1"}{"$var2"} = $value'
    $$hash->{'key1'}{"$var2"} = $value;
    -e syntax OK
    
  3. or download this
    $ perl -MO=Deparse -e '%$hash{"key1"}->%*'
    %{%$hash{'key1'}};
    -e syntax OK
    
  4. or download this
    $ perl -MO=Deparse -e '%{ $hash{"key1"} }'
    %{$hash{'key1'};};
    ...
    $ perl -MO=Deparse -e '$hash{"key1"}->%*'
    %{$hash{'key1'}};
    -e syntax OK
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2019-09-18 01:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (219 votes). Check out past polls.

    Notices?