Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

RE: Re: Recursion

by lolindrath (Scribe)
on Nov 14, 2000 at 19:36 UTC ( [id://41642]=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.


in reply to Re: Recursion
in thread Recursion

I disagree, most looping problems can be made into a recursive function and vise versa.

--=Lolindrath=--

Replies are listed 'Best First'.
RE: RE: Re: Recursion
by Fastolfe (Vicar) on Nov 14, 2000 at 19:48 UTC
    Don't think of it in terms of the suitability for the language. Perl can do either just as well as any other language. Think of it in terms of the problem you're trying to solve. Does it make more sense to use a recursive algorithm or an iterative one? Perl is fine either way, like most languages.
RE: RE: Re: Recursion
by merlyn (Sage) on Nov 14, 2000 at 20:06 UTC
    Yes, and most cars can be used as trucks, and most trucks can be used as cars. Questions with "better" are rarely answerable until we understand what the context is, and what you're optimizing for.

    -- Randal L. Schwartz, Perl hacker

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://41642]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.