Skip to content

Instantly share code, notes, and snippets.

@jbochi
Created August 5, 2012 22:01
Show Gist options
  • Save jbochi/3267267 to your computer and use it in GitHub Desktop.
Save jbochi/3267267 to your computer and use it in GitHub Desktop.
Solution for dailykata.com - Fibonacci in Perl
#!/usr/bin/perl
use strict;
use warnings;
my $a = 0;
my $b = 1;
while ($a < 100) {
print $a, "\n";
($a, $b) = ($a + $b, $a);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment