my $field = join ',', @{$hashref->{col3}}; #### $query->execute($hashref->{col1},@{$hashref->{col2}},@{$hashref->{col3}});