in reply to Quoting in DBI sql query for on the fly query

Besides the recommendation to use placeholders, your problem is that the strings you pass to the query include the trailing \n. Use chomp() to fix this.

Michael

  • Comment on Re: Quoting in DBI sql query for on the fly query