use warnings; use strict; use Statistics::Descriptive; open (INFILE, 'TEST.txt'); #my $linenumber = 0; while () { foreach (/start/../end/) { my @gene = $_; next if /start/||/end/; print OUTFILE "@gene"; # if ( =~ m/final/ ){last;} # do # { # print "$linenumber";$linenumber++; # } # until ($newgene =~m/newgene/); } # print OUTFILE "hallo\n"; } #print 'Geometrischer Mittelwert: ', #$stat->geometric_mean(), "\n";