in reply to Re: Best way to deal with quotes in string with DBI
in thread Best way to deal with quotes in string with DBI

that code is pretty ugly and unnecessarily complicated. You can use placeholders as suggested before...
  • Comment on Re^2: Best way to deal with quotes in string with DBI

Replies are listed 'Best First'.
Re^3: Best way to deal with quotes in string with DBI
by ruzam (Curate) on Jul 28, 2008 at 14:14 UTC
    It's not how I would write it, but the OP was having problems with quoting strings.

    It's no more complicated than the original code, and solves the quoting issues using the preferred DBI quoting interface. Placeholders aren't the one and only method of handling quoting issues and it's not my place to tell the OP how to code.