Rodent of Unusual Size <[EMAIL PROTECTED]> writes:

> Eh.  So how can I keep track of what I've already sent without
> using some outer-scope 'global' state variable?

You can't.

> What arguments are passed to the anonymous sub? The data? A
> reference to them? Nothing at all?

The later; there are _no_ arguments passed to the sub.

> Am I free to frob the 'my' variable declared in the parent sub
> ('wrap' in this case) and keep state that way?

Yes.  That is what the trick of having a function that returns a
function provides you.  Some refer to it as a closure.


Reply via email to