my $sth = $dbh->prepare("SELECT * FROM data WHERE content = BINARY ? "); $sth->execute("Perl"); # This will find "Perl", not "PERL" or "perl"