pernod has asked for the wisdom of the Perl Monks concerning the following question:
Esteemed Monks,
I've searched cpan, super searched and googled, and I'm sure I've overlooked something. Therefore this little question.
My $firm has a web application, where we would like to take google-like search strings and process these for insertion into sql-statements. Example:
PersonId < 3 and OrganisationId = 4
This search string will then be translated into some data-structure that can be transmitted to our sql-generation functions. There are probably a million ways to solve this with regular expressions, Parse::RecDescent and whatnot. Safety-issues (sql-insertion, for example) makes this a delicate issue, though.
Does anyone know of a module that implements this? I am almost certain that this is a wheel that does not need to be reinvented, I'm just unable to find it at the moment. Thank you for listening.
pernod
--
Mischief. Mayhem. Soap.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How can i parse google-like search strings?
by bart (Canon) on Jul 01, 2005 at 09:28 UTC | |
by pernod (Chaplain) on Jul 01, 2005 at 09:37 UTC | |
|
Re: How can i parse google-like search strings?
by Joost (Canon) on Jul 01, 2005 at 09:25 UTC | |
by pernod (Chaplain) on Jul 01, 2005 at 09:46 UTC | |
by Joost (Canon) on Jul 01, 2005 at 09:48 UTC | |
by pernod (Chaplain) on Jul 01, 2005 at 10:16 UTC | |
|
Re: How can i parse google-like search strings?
by Anonymous Monk on Jul 01, 2005 at 09:27 UTC |