I was using the following :

$event =~ s/\'/\\\'/g;
push @sth, "insert into $table values ( '$event', ..  )";
( every element of @sth was executed later )

This allows me to insert values having both ' and "


Reply via email to