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

Re^2: How can i parse google-like search strings?

by pernod (Chaplain)
on Jul 01, 2005 at 09:46 UTC ( #471625=note: print w/replies, xml ) Need Help??

in reply to Re: How can i parse google-like search strings?
in thread How can i parse google-like search strings?

I realize that my question was poorly phrased. SQL::Statement would be useful in this context, but it takes care of the second part of the problem. Namely generating the SQL.

As bart helpfully pointed out, the thing I'm searching for is a widget that translates the value of $cgi->param("search_field") into a data structure that can be fed to something like SQL::Statement.

Thank you for your suggestion, though :)

Mischief. Mayhem. Soap.

Replies are listed 'Best First'.
Re^3: How can i parse google-like search strings?
by Joost (Canon) on Jul 01, 2005 at 09:48 UTC

      Ah! I (think I) get it. As long as I want to construct SQL, and my search strings look a lot like SQL in the first place. Why not let an SQL-something parse my search strings as they'll end up as my WHERE clauses anyway? SQL::Statement::Structure looks promising.

      Never under-estimate the Monastery's ability to open your eyes (and gently point you to TFM). Pardon me for being dense, and thank you again.

      Mischief. Mayhem. Soap.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2019-08-24 00:50 GMT
Find Nodes?
    Voting Booth?

    No recent polls found