[nzlug] quoting perl strings

Glenn Enright glenn.enright at gmail.com
Mon Oct 1 12:00:05 NZST 2007


Just for reference, what I finally did was as follows

@attr = ($one, $two);
$statement="INSERT  INTO example (col1, col2) VALUES (?, ?)"
$sth = $dbh->prepare($statement);
$sth->execute(@attr);
$sth->finish;

-- 
See my blog at
http://snap-happy3216.blogspot.com



More information about the NZLUG mailing list