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} } ).
In reply to Re^5: Code Works But Not Sure How
by haukex
in thread Code Works But Not Sure How
by RichHamilton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |