programming-examples/perl/Statement/Using both next and continue.pl
2019-11-15 12:59:38 +01:00

7 lines
138 B
Perl

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