my $rows = $dbh->selectall_arrayref($sql_stmnt, undef, $script, $parameter); return join(', ', map { $_->[0] } @$rows);