$items[0]{title} = "Song 2"; $items[0]{artist} = "Blur"; $items[1]{title} = "The Call of Khtulu"; $items[1]{artist} = "Metallica"; foreach $item (@items) { print $item->{artist}; print $item->{title}; }
In reply to Re: How do I loop through a multidimensional array?
by razzie
in thread How do I loop through a multidimensional array?
by razzie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |