Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^6: Assigning value through references

by naikonta (Curate)
on Oct 09, 2007 at 10:06 UTC ( #643654=note: print w/replies, xml ) Need Help??


in reply to Re^5: Assigning value through references
in thread Assigning value through references

$ref{$key}{NAME} and ${$ref}{$key}{NAME} are two completely different things. But you can say that the latter is another form of arrow notation (the first arrow, because it's a dereference operator), so they are both a hash reference.
my $env = \%ENV; print $env->{SHELL}; print ${$env}{SHELL}; print $env{SHELL}; # barks under strict, undefined otherwise # output: /bin/bash /bin/bash

Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://643654]
help
Chatterbox?
[stevieb]: debugged my first very low-level C memory issue within a shared library with gdb so I did :D
[stevieb]: problem was in my code, but through the debugger I figured out what was actually happening, and why. Pretty straight forward after a few hours of reading and testing

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2017-06-25 18:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (568 votes). Check out past polls.