Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Error "'exists ^0^' has chars not alphanumeric or underscore in perl"

by roboticus (Chancellor)
on Jan 25, 2013 at 11:58 UTC ( #1015330=note: print w/replies, xml ) Need Help??


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 (Chancellor) on Jan 25, 2013 at 12:07 UTC
    you're trying to interpolate variables
    Are you sure? I do not see any variables.
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015330]
help
Chatterbox?
choroba vaguely remembers seeing pairsite as a result of searching for something, but he doesn't remember what engine or site used it.

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2017-09-26 08:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (293 votes). Check out past polls.

    Notices?