Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Help with hash reference mystery...

by Roger (Parson)
on Dec 21, 2003 at 11:06 UTC ( #316165=note: print w/replies, xml ) Need Help??


in reply to Help with hash reference mystery...

Your code is not doing what you think it's doing. You should change the code from -
print Dumper(%$hash{'output'});
to
print Dumper(%{$hash{'output'}});
Because in the original code you were actually dereferencing %{$hash}{'output'}, where the $hash variable was not defined (you defined %hash earlier, but not $hash).

Add use strict; to the start of your code and you will get a compilation error.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2020-06-02 06:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (13 votes). Check out past polls.

    Notices?