in reply to How to freeze/thaw anonymous subroutines?
The summary of this thread is that B::Deparse can be used for only a limited subset of code references, due to the private scope of variables and closure bindings. In particular, this problem was demonstrated with code in this post by merlyn.
In light of this, it may be prudent to re-evaluate this requirement for serialised code references and shift this "external code" to child modules or external scripts.
|
|---|