http://qs321.pair.com?node_id=1230283


in reply to DBI select IN Array

Your original code (using the x operator instead of map) also works just fine if you move the join outside of the quotes:
my $ID = $dbh->selectall_arrayref("SELECT table FROM tags WHERE tag IN + " . join(', ', ('?') x @tagList));