But even this is not very efficient in Perl compared to iteration and normal recursion (though if the recursion is deep, this is an option...though iteration is most likely a better option). (Update: so it could be considered a memory optimization over normal recursion, but definitely not a speed optimization).sub some_function { ... @_ = @new_list_of arguments goto &some_function ... }
In reply to Re: Misunderstanding Recursion
by runrig
in thread Misunderstanding Recursion
by Andrew_Levenson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |