in reply to Printing full SQL statement with placeholders

heres what i do:
my $statement="SELECT data FROM table WHERE conditions = x"; my $sth=$sql->prepare("$statement"); $sth->execute(); #...(etc) print STDOUT "$statement";
and then i clean it out after debugging