#!/usr/local/bin/perl -w use strict; use Data::Dumper; my $in = < ende. DATA ; if ($in =~/Fehler: Falsches Passwort/si) { print "found.\n"; }