my $results = $dbh->selectall_arrayref(<<'SQL',{ Slice => {} }, $placeholder1, ... ); SELECT foo , bar FROM mytable SQL