my @inhalt = open (Datei, "<", $pfad ); foreach $zeile () { my $name = $zeile =~ /^([^:]+)/; print $name;