in reply to Re^3: Code Works But Not Sure How (updated)
in thread Code Works But Not Sure How

Thanks again I'll look over the debugging checklist. I hadn't tried the foreach loop yet, since I wasn't sure how to access it. I was look at it strictly as {$menu_items = []}.
  • Comment on Re^4: Code Works But Not Sure How (updated)

Replies are listed 'Best First'.
Re^5: Code Works But Not Sure How
by haukex (Archbishop) on Feb 11, 2018 at 15:14 UTC
    I wasn't sure how to access it. I was look at it strictly as {$menu_items = []}.

    Have a look at perlreftut (and for details, perlref): An array reference can always be dereferenced with @{...}, so in this case foreach my $item ( @{ $items->{menu_items} } ).