[ABE.pm] non-trivial closure examples?

Faber J. Fedor faber at linuxnj.com
Fri Aug 8 10:57:52 PDT 2008


Does anyone know of any? 

I'm teaching a Perl class to Java programmers in a coupla' weeks and I'm
looking for some fun stuff to throw in to show them that Perl is a Real
Language.

I've got the canonical example of a closure, now I'm looking for
something that is useful but doesn't require explaining a whole lot of
other functionality to understand what the closure is doing, e.g.
Memoize would not be a good example since I would have to explain
everything Memoize is trying to accomplish..


-- 
 
Regards,
 
Faber Fedor
President
Linux New Jersey, Inc.
908-320-0357
800-706-0701

http://www.linuxnj.com





More information about the ABE-pm mailing list