Thread Array in einer Schleife füllen (2 answers)
Opened by Kurtosis at 2014-12-16 16:48

GwenDragon
 2014-12-16 17:45
#178776 #178776
User since
2005-01-17
14540 Artikel
Admin1
[Homepage]
user image
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];
}
die Drachin, Gwendolyn


Unterschiedliche Perl-Versionen auf Windows (fast wie perlbrew) • Meine Perl-Artikel

View full thread Array in einer Schleife füllen