![]() |
|
P is for Practical | |
PerlMonks |
Re^2: Fibonacci golf with one state variableby aufflick (Deacon) |
on Oct 05, 2008 at 11:54 UTC ( #715424=note: print w/replies, xml ) | Need Help?? |
Hey that's neat! Of course the memory usage is far from constant, but great idea. Good use of say to save a few. Only nitpicks are that you do have explicit initialisation and the first output is zero which is not quite right. Oddly, I get no output unless I tweak it to print to STDERR which is some strange buffering difference - no idea why. ++ for thinking laterally :)
In Section
Seekers of Perl Wisdom
|
|