Probably you want DBI->trace. See the DBI docs for the parameters/options.
In reply to Re: Printing SQL query in Perl by Your Mother in thread Printing SQL query in Perl by Anonymous Monk