my $statement1 = "SELECT files FROM catalog WHERE words LIKE %".$word."%"; $sth1 = $dbh -> prepare($statement1); $sth1 -> execute();