programming-examples/perl/Statement/The continue block gets executed just before the condition gets evaluated again.pl

17 lines
172 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#while (condition) {
# # ...
#} continue {
# # ..
#}
#!/usr/bin/perl -w
$i = 0;
while ($i < 10) {
print "Iteration $i.\n";
} continue {
$i++;
}