jdlev has asked for the wisdom of the Perl Monks concerning the following question:
Here's the code:
while ($row = $sth->fetchrow_arrayref()) { @player = [(@$row[0], @$row[4])]; }
It only prints out the last record that the array ran through?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Loop that creates multidimensional array?
by keszler (Priest) on Sep 12, 2013 at 16:59 UTC | |
|
Re: Loop that creates multidimensional array?
by Laurent_R (Canon) on Sep 12, 2013 at 17:05 UTC | |
by jdlev (Scribe) on Sep 12, 2013 at 17:15 UTC | |
by fishmonger (Chaplain) on Sep 12, 2013 at 19:11 UTC | |
|
Re: Loop that creates multidimensional array?
by Anonymous Monk on Sep 13, 2013 at 08:30 UTC | |
|
Re: Loop that creates multidimensional array?
by Marshall (Canon) on Sep 13, 2013 at 12:59 UTC |