The Open Web Application Security Project (OWASP) project has a tool called OWASP SQLiX that fits the description. It also happens to be written in Perl (by Cedric Cochin). Download here. cedri.cc states: "All content released under a Creative Commons License unless otherwise noted."
in reply to Re^2: Preventing SQL injection attacks: Placeholders are enough for MySQL, Postgresql and SQLite
in thread Preventing SQL injection attacks: Placeholders are enough for MySQL, Postgresql and SQLite
You should also read OWASP's Testing for SQL Injection article that includes a number of references to papers and tools touching the subject.