Thread Array in einer Schleife füllen
(2 answers)
Opened by Kurtosis at 2014-12-16 16:48 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 my $max = 100; my @results; for my $count (1..$max) { my $result = calculate($count); push @results,$result; } print "Ergebnisse\n"; for my $index (1..$max) { print "Ergebnis ",$index, ": ",$result[$index-1]; } |