See TRACING section in DBI documentation
In reply to Re: Seeing the query used by a prepared statement by zwon in thread Seeing the query used by a prepared statement by Anonymous Monk