Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by roboticus (Canon)
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
Re^2: Error "'exists ^0^' has chars not alphanumeric or underscore in perl"
by choroba (Abbot) 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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2014-09-21 02:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (166 votes), past polls