Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
as you can see, I get the data from a database, what I'm trying to do is to make a array of arrays where each @aoa[$id] is a array of values for that $id.while(($id,$value) = $select->fetchrow_array ) { push @aoa[$id],$value; }
Type of arg 1 to push must be array (not array slice) at file.pl line +62, near "$aoa;"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: array of arrays
by dreadpiratepeter (Priest) on Jun 29, 2009 at 13:06 UTC | |
|
Re: array of arrays
by davorg (Chancellor) on Jun 29, 2009 at 13:29 UTC | |
|
Re: array of arrays
by jethro (Monsignor) on Jun 29, 2009 at 13:09 UTC | |
|
Re: array of arrays
by Marshall (Canon) on Jun 29, 2009 at 13:28 UTC | |
by Limbic~Region (Chancellor) on Jun 29, 2009 at 13:42 UTC | |
by Marshall (Canon) on Jun 29, 2009 at 14:16 UTC | |
by Limbic~Region (Chancellor) on Jun 29, 2009 at 14:36 UTC | |
by Marshall (Canon) on Jun 29, 2009 at 15:14 UTC | |
|
Re: array of arrays
by arc_of_descent (Hermit) on Jun 29, 2009 at 13:26 UTC | |
|
Re: array of arrays
by Anonymous Monk on Jun 29, 2009 at 13:28 UTC |