$items[0]{title} = "Song 2"; $items[0]{artist} = "Blur"; $items[1]{title} = "The Call of Khtulu"; $items[1]{artist} = "Metallica"; $x = "0"; foreach $item ($items) { print $items[x++]{title}; #This works print $item{title}; #But this doesn't. Why not? }
Originally posted as a Categorized Question.
In reply to How do I loop through a multidimensional array? by razzie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |