in reply to How do I loop through a multidimensional array?

A few typos that were hopefully transcription errors: foreach $item ($items) should be foreach $item (@items) and $items[x++]{title} should be $items[$x++]{title}.

But your main problem is that in the loop each value of $item is a hash reference (not a hash), so you need to use

print $item->{title};

And incidently, why do you initialise $x as a string, when you only ever use it as a number?

Originally posted as a Categorized Answer.