in reply to Re^2: cleaning up sql from file
in thread cleaning up sql from file
heh, i forgot to login before posting
why didn't i think of that
$word[ $count ] =~ s/\'/\\\'/g;
i suppose i could make it look cleaner with
s|\'|\\\'|g
but this works great. the dbi quote or quote_identifier might have worked as well but it failed the first run and the regex worked, so i'll use what worked
thanks again
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: cleaning up sql from file
by Corion (Patriarch) on Oct 17, 2010 at 20:25 UTC |