in reply to DBI - get info from statement handles

Did you check the pod? Under Statement Handle Attributes:
"Statement" (string, read-only) Returns the statement string passed to the "prepare" method +.
So $query_handle->{Statement} is what you want.

blokhead