good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: Ways to implement a closureby ikegami (Patriarch) |
on Oct 15, 2004 at 19:48 UTC ( [id://399634]=note: print w/replies, xml ) | Need Help?? |
I see. Well there you go, yet another way! Nit: that code works in C (given some imagined Hash class), and the data does stick around:
I think you meant this:
Which wouldn't work in C:
In Section
Seekers of Perl Wisdom
|
|