Closure and anonymous sub -- two totally different things! An anonymous sub is a ref to a sub without a name. A closure is any sub (named or not) that refers to lexical variables defined outside of its scope.
Re: Re: Why are closures cool, continued?
Replies are listed 'Best First'.