in reply to Bitten by the lazy execution bug?
if ( my @vals = /<regex>/ ) { $dbh->do( $sql, undef, @vals ) or die " ... "; } [download]
That's much safer because it avoids all the crap about magic vars.