my $sql = exec_select( "call store_proc(" . join(',', ('?') x @allparms ) . ")", map { $data->{$_} =~ s/'/''/g; $data->{ $_ } || '' } @allparms );