in reply to how to use place holders?
Something you can do to make your code easier to read (beyond the formating in this forum) is to use q() and qq(). For example, where you do this:
Try this instead:$INSERT_SQL="INSERT INTO trg_table(". "column1,". "column2". ") VALUES ". "(?,". "?)";
$INSERT_SQL= q{ INSERT INTO trg_table( column1, column2 ) VALUES (?,?) };
Because you do not need variable interpolation here, you can use single quotes. If you need to do variable interpolation, use qq() instead.
|
|---|