in reply to Re^2: DBI select ids to @list
in thread DBI select ids to @ids

ah yes, selectcol_arrayref would do the trick. That's exactly why it was written, I bet. I had forgotten about that function
use DBI; my $dbh = DBI->connect(...); my $stmt = 'select id from items where foo > 42'; my @ids = @{ $dbh->selectcol_arrayref($stmt) };