http://www.perlmonks.org?node_id=1015330


in reply to Error "'exists ^0^' has chars not alphanumeric or underscore in perl"

documents9900:

choroba is correct. I managed to see the % in the SQL string and had a knee-jerk reaction.

The problem is that you're trying to interpolate variables into SQL rather than using placeholders. Read up on placeholders in DBI and convert your code to use them. It'll simplify things for you, make your code more robust, and prevent odd SQL syntax problems.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

  • Comment on Re: Error "'exists ^0^' has chars not alphanumeric or underscore in perl"
  • Download Code

Replies are listed 'Best First'.
Re^2: Error "'exists ^0^' has chars not alphanumeric or underscore in perl"
by choroba (Bishop) on Jan 25, 2013 at 12:07 UTC
    you're trying to interpolate variables
    Are you sure? I do not see any variables.
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ