Created
August 5, 2012 22:01
-
-
Save jbochi/3267267 to your computer and use it in GitHub Desktop.
Solution for dailykata.com - Fibonacci in Perl
This file contains hidden or 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 | |
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