programming-examples/perl/Statement/Using both next and continue.pl

7 lines
138 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++;
}