programming-examples/perl/Statement/next with condition.pl
2019-11-15 12:59:38 +01:00

8 lines
140 B
Perl

while ($loop_index <= 10) {
print "Hello\n";
next if $loop_index > 5;
print "there\n";
} continue {
$loop_index++;
}