Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Modifying a parameter to a recursive function

by Roy Johnson (Monsignor)
on Apr 08, 2009 at 21:11 UTC ( #756462=note: print w/replies, xml ) Need Help??


in reply to Modifying a parameter to a recursive function

The only recursive call you have passes an array that you just declared and assigned in a minimal scope around the recursive call. The values you're modifying within the call are thrown away when that scope ends. It's not clear to me what you want to be modified. Do you expect $_->content_list() to return different values after the recursive call?

bellaire gave a good example of the sort of value-modification you seem to want.


Caution: Contents may have been coded under pressure.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://756462]
help
Chatterbox?
[1nickt]: I think it is indubitably fast. But it's not a drop in replacement. And I tend to be leery of putting too many eggs in these one-man baskets.

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2017-05-22 20:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?