RosettaCodeData/Task/Loops-Continue/Perl/loops-continue-1.pl

9 lines
113 B
Perl
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
foreach (1..10) {
print $_;
if ($_ % 5 == 0) {
print "\n";
next;
}
print ', ';
}