in reply to How to get code from a coderef?
You could have done that with B::Deparse directly. Data::Dumper just uses it. Neither of those modules dump closures correctly. For that, use Data::Dump::Streamer. DDS also uses B::Deparse to dump the code but has additional magic to reconstruct the lexical environment. Right now, this is the only way to dump closures.
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
|
|---|