Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: How to address hashtables nested in arrays?

by benedicth (Initiate)
on Apr 11, 2015 at 21:07 UTC ( [id://1123157]=note: print w/replies, xml ) Need Help??


in reply to Re: How to address hashtables nested in arrays?
in thread How to address hashtables nested in arrays?

Thank you so much!! I'm still a newbie can you tell me why %{$data->{$m} does not work in this case?
  • Comment on Re^2: How to address hashtables nested in arrays?

Replies are listed 'Best First'.
Re^3: How to address hashtables nested in arrays?
by pme (Monsignor) on Apr 11, 2015 at 21:43 UTC
    In this case both $n and $m contain hash reference but in %{$data->{$m}} $m should be a key.

    Try to run your script in perl debugger (perldebug) and check $n and $m using 'x' command for better understanding.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-25 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found