razzie has asked for the wisdom of the Perl Monks concerning the following question:
$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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I loop through a multidimensional array?
by davorg (Chancellor) on Jul 04, 2001 at 13:23 UTC | |
|
Re: How do I loop through a multidimensional array?
by razzie (Initiate) on Jul 04, 2001 at 15:09 UTC | |
by davorg (Chancellor) on Jul 04, 2001 at 15:34 UTC |