Mega Code Archive

 
Categories / Perl / Statement
 

The continue block gets executed just before the condition gets evaluated again

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