A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
8
Task/Loops-Continue/Perl/loops-continue-1.pl
Normal file
8
Task/Loops-Continue/Perl/loops-continue-1.pl
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
foreach (1..10) {
|
||||
print $_;
|
||||
if ($_ % 5 == 0) {
|
||||
print "\n";
|
||||
next;
|
||||
}
|
||||
print ', ';
|
||||
}
|
||||
9
Task/Loops-Continue/Perl/loops-continue-2.pl
Normal file
9
Task/Loops-Continue/Perl/loops-continue-2.pl
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
foreach (1..10) {
|
||||
print $_;
|
||||
if ($_ % 5 == 0) {
|
||||
print "\n";
|
||||
goto MYLABEL;
|
||||
}
|
||||
print ', ';
|
||||
MYLABEL:
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue