Skip to content

Instantly share code, notes, and snippets.

@nanto
Created July 26, 2010 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nanto/490489 to your computer and use it in GitHub Desktop.
Save nanto/490489 to your computer and use it in GitHub Desktop.
#!/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