|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: recursive formula.by QM (Parson) |
| on Aug 05, 2004 at 13:30 UTC ( [id://380332]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
It seems you have some solutions, so I'm taking a different tack. Two points:
1) You'd probably benefit more from showing us a little code with your question, before seeing the solutions. 2) You may want to look at Memoize, like so: Or, cache it yourself: I leave it to you to work out how to handle the empty parameter list :) Update: See BrowserUk's Re^2: recursive formula. below for reasons why this isn't a good idea. -QM
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||