in reply to Re^4: eval dilema
in thread eval dilema
If the user enters `system -rf /` into your program or Robert'); DROP TABLE Students; --, you will get problems, depending on how exactly you're accepting the user input. You most likely want to read up on DBI place holders. eval is the wrong tool for this.
If you need to dynamically construct a query with varying expressions, you should still use DBI placeholders instead of trying to use eval or string interpolation or string concatenation.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: eval dilema
by zdzieblo (Acolyte) on Jul 14, 2008 at 11:17 UTC |