in reply to Re^2: DBI select ids to @listin thread DBI select ids to @ids
use DBI; my $dbh = DBI->connect(...); my $stmt = 'select id from items where foo > 42'; my @ids = @{ $dbh->selectcol_arrayref($stmt) }; [download]