go ahead... be a heretic  
PerlMonks 
Re: phi div by 0 errorby hdb (Prior) 
on Sep 01, 2013 at 14:24 UTC ( #1051804=note: print w/ replies, xml )  Need Help?? 
A faster way is to use $phi = (1+sqrt(5))/2; However, if you insist of using the ratios of Fibonacci numbers (it would have been nice to mention that), then you need to create 20 of them (rather than 10) if you always divide the even numbered ones by the odd numbered ones. So let your first loop run until 20 instead of 10. UPDATE: A postfix loop solution for you:
In Section
Seekers of Perl Wisdom

