There's more than one way to do things | |
PerlMonks |
Re: Backslashes with DBI quote( ) and MySQLby webadept (Pilgrim) |
on Mar 06, 2002 at 07:25 UTC ( [id://149624]=note: print w/replies, xml ) | Need Help?? |
I would have to agree with lachoy on this, and it bothered me for some time as well. What caught my eye with your problem was you say the "escaped single quotes" and if all went correctly you shouldn't be "seeing" anything except a single quote. When I noticed this problem was when I was taking in information from a web source or sending it as a POST to the program. When that happens, the strings are "escaped". Taking those strings in and escaping them again with "quote()" would give the out put you are describing. Since using quote() is a good idea, espesally with strings, what I did to solve my problem was to unescape the input strings and then use "quote()" on them, re-escaping them. This insured input and that unwated effects were not taken in without some messure of deturance. okay, enough out of me, hope that helped. webadept.net
In Section
Seekers of Perl Wisdom
|
|