Is it possible to assign an entire 1-D array to a row in a 2-D array without looping and without using references?
Example(What I don't want to do):
while (my @kp_src_t_row=$sth->fetchrow_array())
{
for ($column=0; $column<@kp_src_t_row; $column++)
{
$currentarray[$kp_num][$column] = $kp_src_t_row[$column];
}
$kp_num++;
}
This is what I want to do in theory but don't have a clue if it can be done:
while (my @kp_src_t_row=$sth->fetchrow_array())
{
$currentarray[$kp_num]= @kp_src_t_row
$kp_num++;
}
Such that in the end @currentarray would contain many rows of the data retrieved from the fetch into @kp_src_t_row.
Thanks.