Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Looking for elegant solution to dbi coding problemby injunjoel (Priest) |
on Jul 15, 2005 at 22:48 UTC ( [id://475379]=note: print w/replies, xml ) | Need Help?? |
Greetings all, One suggestion would be to prepare the statement with ?'s and then re-use it for each line. The following code is untested... you have been warned. The ?'s will handle the quoting for you, DBI is nice that way. This assumes that its the same $table for each line, but it saves the overhead of preparing the query each time. -InjunJoel
"I do not feel obliged to believe that the same God who endowed us with sense, reason and intellect has intended us to forego their use." -Galileo
In Section
Seekers of Perl Wisdom
|
|