Skip to content

Instantly share code, notes, and snippets.

@koji
Created July 21, 2013 08:09
Show Gist options
  • Save koji/6047883 to your computer and use it in GitHub Desktop.
Save koji/6047883 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use strict;
use warnings;
for my $i (1..100) {
if ($i%15 == 0) {
print "FizzBuzz\n";
} elsif ($i%5 == 0 ) {
print "Buzz\n";
} elsif ($i%3 == 0 ) {
print "Fizz\n";
} else {
print $i."\n";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment