The stupid question is the question not asked | |
PerlMonks |
Re^2: private recursive subroutinesby Sixtease (Friar) |
on May 10, 2007 at 16:04 UTC ( [id://614674]=note: print w/replies, xml ) | Need Help?? |
I don't think that showing my real-world example would have much point. I just had a very complicated subroutine where I wanted to refactor some code to a separate sub. I didn't want to pollute the package's namespace with another function name, so I used a my $coderef. And it turned out to be a good task for recursion, so here we go.
In Section
Meditations
|
|