Perl-Sensitive Sunglasses | |
PerlMonks |
Safety of concatenating query stringby bradcathey (Prior) |
on Jun 23, 2011 at 16:38 UTC ( [id://911111]=perlquestion: print w/replies, xml ) | Need Help?? |
bradcathey has asked for the wisdom of the Perl Monks concerning the following question: Fellow Monastians, I've always used placeholders, but was wondering about the safety, or not, of concatenating a query statement with column names. So, note the concatenation at the end of $stmt = below:
vs. the long-hand method:
Obviously the first one is a bit more streamlined, but unsure of the safety of it. Thoughts?
—Brad "The important work of moving the world forward does not wait to be done by perfect men." George Eliot
Back to
Seekers of Perl Wisdom
|
|