in reply to Re: Why are closures cool, continued?
in thread Why are closures cool, continued?

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.
  • Comment on Re: Re: Why are closures cool, continued?

Replies are listed 'Best First'.
Re:x3 Why are closures cool, continued?
by grinder (Bishop) on Jan 19, 2002 at 18:27 UTC
    Nearly. An anonymous sub is a sub without a name that can only be accessed via a reference (to that sub).

    --
    g r i n d e r
    print@_{sort keys %_},$/if%_=split//,'= & *a?b:e\f/h^h!j+n,o@o;r$s-t%t#u';