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.
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
In reply to Re: How to get code from a coderef?
by diotalevi
in thread How to get code from a coderef?
by tphyahoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |