in reply to Re^2: How to get an acceptable H::T AoH ref
in thread How to get an acceptable H::T AoH ref
"WHERE id IN (" . join ',',@ids . ")"Another way would be to use the loop but instead of pushing the whole arrayref from the execute into your final array, you need to cycle through each arrayref and push that onto the final array:
push @$allshows,$_ for @{$sth->fetchall_arrayref({})}; instead of push @$allshows, $sth->fetchall_arrayref({});
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to get an acceptable H::T AoH ref
by bradcathey (Prior) on Sep 10, 2004 at 21:34 UTC |