scoobyrico has asked for the wisdom of the Perl Monks concerning the following question:
I see each $row as it should, but when I look at the array after the while loop, I see that each position in the array is pointing to the first positionmy @return_data_team; # This is not secure in JSON but how dojo requir +es it. while ( my $row = $sth->fetchrow_arrayref ) { push (@return_data_team, $row); print STDERR Dumper($row); } print STDERR Dumper(@return_data_team);
I did find a solution by just passing the $sth->fetchall_arrayref instead of the array. However, I still want to understand why. Thanks for your help in advanceVAR1 = [ 'Richard Smith - Traffic Team', '106990', '156446', 'Traffic Team', 'Unknown' ]; $VAR2 = $VAR1; $VAR3 = $VAR1; $VAR4 = $VAR1; $VAR5 = $VAR1; $VAR6 = $VAR1; $VAR7 = $VAR1; $VAR8 = $VAR1; $VAR9 = $VAR1; $VAR10 = $VAR1; $VAR11 = $VAR1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI question
by Corion (Patriarch) on Mar 07, 2008 at 20:06 UTC | |
by Herkum (Parson) on Mar 07, 2008 at 21:12 UTC | |
|
Re: DBI question
by punkish (Priest) on Mar 07, 2008 at 21:18 UTC | |
|
Re: DBI question
by dragonchild (Archbishop) on Mar 07, 2008 at 20:19 UTC |