perlquestion
luxs
<p>Simple DBI search with slashes do not return anything
<code>
my $string = '/a/b/c';
my $req = qq{ SELECT * FROM `texts` WHERE `string`=?};
my $sth = $dbh->prepare($req);
my $row = $sth->execute($string);
say "row = $row";
</code>
produce:
row = 0E0</p>
<p>
Table `texts`:
string varchar(256) utf8_general_ci
</p>
How can I perform exact search strings with with slashes?