Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Re: (tye)Re2: A Real Closureby petral (Curate) |
on Jul 13, 2001 at 04:22 UTC ( [id://96244]=note: print w/replies, xml ) | Need Help?? |
Ok, I'll try (though see John M. Dlugosz's answer just above): That is a and b are just two references to the same function and its (compiled-in) variable. c and d refer to different functons (with the same code) each with its own (run-time declared) variable. c and d are closer to what is referred to elsewhere as closures. (Not everywhere else, the original usage in set theory is yet another thing.) update Obviously I didn't reload the page before submitting. I thought tye had left, so it would be safe to try to answer without being compared to his much more complete answers. I'll leave mine up anyway, in the hope that repetition aids understanding.   p
In Section
Seekers of Perl Wisdom
|
|