Hello
I have random data coming in from many XML files which are being parsed and stuffed into a hash
After an entire document has been read in, the desired items are extracted from the hash by key, and then inserted into a database.
Since I don't know what I'm getting beforehand, I want to make sure perl doesn't interpret metacharacters in any way other than as literals.
I was using dbh_quote with good results, but got random burps, sometimes after 3000 files, so went to regexp instead of dbh_quote
My reasoning, perhaps flawed, for wanting a single (or as few as possible) lines of code was that it would run faster, maybe fewer passes per item
Largins
In reply to Re^2: Regexp and metacharacters
by Largins
in thread Regexp and metacharacters
by Largins
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |