|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re^3: Managing captureby Anonymous Monk |
| on Feb 19, 2013 at 12:12 UTC ( #1019537=note: print w/ replies, xml ) | Need Help?? |
|
Competence is always nice sure, but I don't understand how destructors help. They aren't invoked unless an object is destroyed, which it won't be if it paricipates in a cycle. I think you understand pefectly :) If you're accepting callbacks and storing them in an object, you can made a practice of using PadWalker and checking for closures A slightly simpler check could be made using Devel::Refcount but why bother when PadWalker can do it :)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||