Thread Textdatei auslesen, nur bestimmten Abschnitt
(4 answers)
Opened by PETER_PAN2009 at 2010-03-29 16:33 Code (perl): (dl
)
1 2 3 4 5 while (my $line = <$fh>) { if ($line =~ m/^Part1:/ .. $line =~ m/^Part2:/) { push @array, $line; } } http://p3rl.org/perlop stichwort flip-flop-operator Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: ![]() ![]() |