in reply to calling from outside the closure a sub defined in a closure

Your code doesn't show a closure, just a bare block that defines a coderef (which might itself be a closure) in its lexical scope. If you want to access that outside the block, you must find a way to pass the coderef outside. A sub could return it, probably among other things.

This looks like a somewhat convoluted design.

Anno

  • Comment on Re: calling from outside the closure a sub defined in a closure