Perl Monk, Perl Meditation | |
PerlMonks |
Re: Multi-Method closuresby bart (Canon) |
on Sep 15, 2003 at 13:32 UTC ( [id://291550]=note: print w/replies, xml ) | Need Help?? |
It somewhat reminds me of Gnat's slides of the JAPH 2000 talk "Stages of a Perl programmer", especially "OOP without objects". Coincidence, I'm sure. :)
BTW I think the code in that slide has a memory leak. There seem to be circular references from $person to the subs, and back. OTOH, yours doesn't, as you don't actually use the hash outside the closures.
In Section
Cool Uses for Perl
|
|