Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: subroutine calls itself

by tux402 (Acolyte)
on Jan 09, 2009 at 16:17 UTC ( [id://735228]=note: print w/replies, xml ) Need Help??


in reply to Re: subroutine calls itself
in thread subroutine calls itself

Thats good to know. I was just hoping that my program wouldn't suck up all the resources on my server. Thanks!

Replies are listed 'Best First'.
Re^3: subroutine calls itself
by ikegami (Patriarch) on Jan 09, 2009 at 17:50 UTC

    I just wanted to clarify something. When I said there's no performance issue, I meant compared to calling the same number of non-recursive subs. Calling subs in general is an expensive operation in Perl, but that's not related to whether the sub is recursive or not.

    So if you have no qualms with calling a sub seven times, you should have no qualms about calling a sub that recurses six times instead.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://735228]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-25 06:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found