
WillST
New User
May 5, 2011, 3:58 PM
Post #5 of 7
(441 views)
|
|
Re: [rovf] Reading in a file and the manipulating it
[In reply to]
|
Can't Post
|
|
my $expensises_r = {D => [Drinks, 17.35], F => [Food, 3.45], G => [Gadgets, 50], K => [Kids, 9.25], M => [Mortgage, 320]}; for (keys %{$expensises_r}) { print "value: ${$expensises_r}{$_} \n"; } I have the above code and I am attempting to get the hash value to print however I am getting the memory address rather than the value itself. I think I am meant to also use something like @{$name_r} but not sure. Any help would be appreciated.
|