|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: Zeckendorf representationby jwkrahn (Prior) |
| on Aug 25, 2012 at 02:58 UTC ( #989681=note: print w/ replies, xml ) | Need Help?? |
|
No need to calculate 5 * $_[0] * $_[0] twice, and you probably meant to use the logical or operator instead of the bit-wise or operator.
(The logical operators short-circuit so is_perfect_square($mins) will only execute if is_perfect_square($plus) is true.)
Or just:
In Section
Cool Uses for Perl
|
|
||||||||||||||||||||||||||