http://www.perlmonks.org?node_id=11123495


in reply to Re^4: DBI search for forward slash
in thread DBI search for forward slash

my $R2 = qq{ SELECT * FROM `test` WHERE `string`=?}; my $sR2 = $dbh->prepare($R2); my $row2 = $sR2->execute();

You forgot to pass $string to ->execute as a value for the placeholder. $sR2->execute($string); works as expected.