-
-
Save AlexDaniel/a6c6b1a1d56caf3be49e41e4ede26b2c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub MAIN () { | |
loop { | |
state $n = 0; | |
put $n++; | |
last if $n > 2; | |
FIRST { put "Starting loop. \$n is n" } | |
LAST { put "Finishing loop. \$n is n" } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment