>>>>> "Jeff" == Jeff Pinyan <[EMAIL PROTECTED]> writes:
Jeff> A closure is an ANONYMOUS function (constructed via $x = sub {
Jeff> ... }) that contains LEXICAL variables that have been defined in
Jeff> a scope visible to the closure itself.
leave out the word ANONYMOUS there.
ANONYMOUS and CLOSURE are orthogonal.
in "BEGIN { my $x; sub foo { ... $x ... } }", foo is a CLOSURE
and is not ANONYMOUS.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
- Re: test for real number Jeff Pinyan
- Re: test for real number Carl Rogers
- Re: test for real number Morten Sickel
- Re: test for real number Randal L. Schwartz
- Re: test for real number Paul
- Re: test for real number Randal L. Schwartz
- Re: test for real number Paul
- Re: test for real number Piers Cawley
- advanced: closures (was Re: test for r... Jeff Pinyan
- Re: advanced: closures (was Re: t... Randal L. Schwartz
- Re: advanced: closures (was R... Randal L. Schwartz
- Re: advanced: closures (was R... Jeff Pinyan
- Re: advanced: closures (was R... Randal L. Schwartz
- Re: advanced: closures (was R... Peter Scott
- Re: test for real number Timothy Kimball
- Re: test for real number Randal L. Schwartz
- Re: test for real number Paul
