programming-examples/perl/Statement/The continue block gets executed just before the condition gets evaluated again.pl
2019-11-15 12:59:38 +01:00

17 lines
172 B
Perl

#while (condition) {
# # ...
#} continue {
# # ..
#}
#!/usr/bin/perl -w
$i = 0;
while ($i < 10) {
print "Iteration $i.\n";
} continue {
$i++;
}