in reply to Re^2: Need help escaping literal string
in thread Need help escaping literal string

Typically it would look a little like this.

my $insert = "insert into table (vol) values (?)"; $dbh->do($insert, $values[8]);

Generally, the notion is that you never directly put variables into SQL statements.