$sth->prepare( 'SELECT ' . join( ',', @fields ) . ' FROM database ETC ETC ETC' ); #### %rowhash{ @fields } = $sth->fetchrow_array();