in reply to referring to individual elements after fetchrow_arrayref finds a '1' attached
On the other hand, since DBI reuses the same reference each time for fetchrow_arrayref(), you might mean something like this:while ($array_ref_partial = $sth2->fetchrow_arrayref) { warn join(' | ', @$array_ref_partial), "\n"; push @rows_partial, $array_ref_partial; push @partial_famids, $array_ref_partial->[1]; }
That fits more in line with your comment about copying the array.push @rows_partial, [ @$array_ref_partial ];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: referring to individual elements after fetchrow_arrayref finds a '1' attached
by scratch (Sexton) on Sep 17, 2001 at 19:18 UTC |