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

If you want to use it outside the sub, you have to return it to the caller (or use a global/package variable, but you should avoid that).

You can call it wherever you have a reference to it.

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