![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re: Fibonacci Generatorby Hofmator (Curate) |
on Aug 10, 2001 at 19:21 UTC ( #103904=note: print w/replies, xml ) | Need Help?? |
You could avoid those ugly ifs before every printout by saying at the top of your program (see perlvar). Your prints then simply become print; or print $y; And two random remarks, you might be interested in this recent thread, also dealing with the Fibonacci series and I hope you developed your program using strict and warnings :) -- Hofmator
In Section
Code Catacombs
|
|