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.