Ok, I maybe I hit a wrong button and replied at
the wrong level. I am a "new guy" in this forum and I say,
please don't take offense! None at all was intended!
I only had two main points:
1) simple SQL statements - unnecessary escapes like: \"
2) simplify de-referencing a list ref
I hear: "
Just adding quotes around the contents of $ID doesn't properly convert it
from arbitrary text into an SQL string literal... "
From my experience so far, "prepare" appears to do exactly that!
The prepare method is much smarter than I would have thought.
This is what amazed me! And I mentioned this in my post.
This thing gets a string from Perl and then applies its own "rules".
How "prepare" gets the "real" value of $ID is a mystery to me. But it does! I have several programs that work with this syntax.
As far as de-referencing lists, we are "on the same page.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.