Isn't this what the Y Combinator is for? Recursive anon subs.
In reply to Re: private recursive subroutines by rlb3 in thread private recursive subroutines by Sixtease