in reply to How do I loop through a multidimensional array?
$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}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Answer: How do I loop through a multidimensional array?
by davorg (Chancellor) on Jul 04, 2001 at 15:34 UTC |