foreach
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
foreach [2017/06/29 10:46] – gg | foreach [2017/06/29 10:47] (current) – [Perl] gg | ||
---|---|---|---|
Line 123: | Line 123: | ||
use warnings; | use warnings; | ||
- | // Anlegen des Arrays | + | # Anlegen des Arrays |
my @fiblist = (0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55); | my @fiblist = (0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55); | ||
my $i = 0; | my $i = 0; | ||
- | // Für jedes Element in der Liste eine Ausgabe machen | + | # Für jedes Element in der Liste eine Ausgabe machen |
foreach $a (@fiblist){ | foreach $a (@fiblist){ | ||
print " | print " |
foreach.1498726011.txt.gz · Last modified: 2017/06/29 10:46 by gg