8 lines
172 B
Perl
8 lines
172 B
Perl
$i=1;
|
|
while ($i <= 10) {
|
|
if ($i == 5) {
|
|
print "\$i == $i\n";
|
|
next;
|
|
}
|
|
print "$i ";
|
|
}continue {$i++;} # $i is incremented only once |