use 5.012; use strict; use warnings; use SQL::Abstract; my $sql = SQL::Abstract->new; my $table ='atable'; my %data = (a=>q/NULL/,b=>1,c=>q/'string and string'/); my $stmt_and_val = $sql->generate('INSERT INTO', \$table, \%data); say $stmt_and_val;