Created
July 26, 2010 12:39
-
-
Save nanto/490489 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
#!/usr/bin/perl | |
$i=1; | |
start: | |
goto print_fizz if $i % 3 == 0; | |
goto print_buzz if $i % 5 == 0; | |
print $i; | |
goto print_newline; | |
print_fizz: print 'Fizz'; | |
goto print_buzz if $i % 5 == 0; | |
goto print_newline; | |
print_buzz: print 'Buzz'; | |
print_newline: print "\n"; | |
$i = $i + 1; | |
goto end if $i == 100; | |
goto start; | |
end:; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment