my $string=; chomp $string; if ("hallo welt" =~ $string) { print "juhu\n" }