Thanks ! Your answer makes sense to me. It can work for me with little modification. Can you please tell me which module does $db->execute($var) belongs to? Regards
Oh, I apologize. $db->execute was a reference to your database handle created via the DBI module. But what I was really trying to mention was the idea of using two separate queries. :)