http://www.perlmonks.org?node_id=1151479


in reply to What are placeholders in DBI, and why would I want to use them?

... you can't use placeholders for variable-length WHERE IN('foo', 'bar', 'baz') constructs.

PostgreSQL offers the following construct:

 where array[ column_name ] <@ ( ? )

you can then $sth->execute(), passing an arrayref (i.e.: ['foo', 'bar', 'baz'] ) to the single placeholder.