in reply to Can a sub generate a closure from within itself?

It's not clear to me what you're asking.

If you want to return one of several different styles of closure, you'll need to have closure generators for each of them, or a conditional block that determines which to return.

  • Comment on Re: Can a sub generate a closure from within itself?