Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: Lost anonymous subsby kappa (Chaplain) |
on Dec 09, 2004 at 16:02 UTC ( [id://413606]=note: print w/replies, xml ) | Need Help?? |
I have written almost exactly the same piece of code in the reply to diotalevi up there because did not spot your comment. Yes, that helped me to understand things. I somehow got thinking that closures copy referenced lexicals when created. That was my error. This is the case when copying really takes place:
--kap
In Section
Seekers of Perl Wisdom
|
|