in reply to Re: Pushing AoH refs into another AoH ref
in thread Pushing AoH refs into another AoH ref
Points well taken. I have amended my code, and it works great. Thanks all.
my ($shows, $allshows); for my $i ( 0 .. $#ids ) { $stmt = "SELECT * FROM shows WHERE type = 2 AND id = '$ids[$i]'"; $sth = $dbh->prepare($stmt); $sth->execute(); push @$allshows, $sth->fetchall_arrayref({}); }
|
|---|