Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: SQL Query Error

by mifflin (Curate)
on Sep 09, 2005 at 16:53 UTC ( [id://490647]=note: print w/replies, xml ) Need Help??


in reply to SQL Query Error

is it possible that perl is trying to interpolate Secure as a hash in?...
WHERE SOFT LIKE '%Secure Path%'

Replies are listed 'Best First'.
Re^2: SQL Query Error
by jZed (Prior) on Sep 09, 2005 at 17:29 UTC
    No that isn't what is happening. The % sigils are correctly interpreted as SQL wildcards. See my answer below for what is really going on.
      Not that I don't believe you, but how is that not being interpretted as a hash? It's in a double quoted string which should make it try to interpolate.

      thor

      Feel the white light, the light within
      Be your own disciple, fan the sparks of will
      For all of us waiting, your kingdom will come

        Well, try the code below. If %bar were being interpolated as a hash, it would produce an error. Hash values are interpolated, but not entire hashes, at least not in strings that look like these.
        #!/usr/bin/perl -w use strict; my $str = "this has %bar that looks like a hash"; print $str;
Re^2: SQL Query Error
by DrAxeman (Scribe) on Sep 09, 2005 at 17:24 UTC
    That's what it looks like. Not sure how to work around it.

    '\%Secure Path\%' gives the same error.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://490647]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-25 22:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found