programming-examples/perl/Statement/next with condition.pl

8 lines
140 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
while ($loop_index <= 10) {
print "Hello\n";
next if $loop_index > 5;
print "there\n";
} continue {
$loop_index++;
}