my $sth1 = $dbh1->prepare("SELECT netz FROM hosts WHERE hostname LIKE ?"); $sth1->execute( '%' . $hostname . '%' );