http://qs321.pair.com?node_id=524588


in reply to Re^2: How to get code from a coderef?
in thread How to get code from a coderef?

YAML actually uses B::Deparse to dump. Remember the way back of YAML is much slower and unsafe than having a coderef on a perl script. Diego de Lima

Replies are listed 'Best First'.
Re^4: How to get code from a coderef?
by diotalevi (Canon) on Jan 20, 2006 at 22:06 UTC

    If a compiled perl serializes to perl source code, is compiled C# or whatver supposed to serialize to C# source code as well? What is supposed to happen when restoring something dumped like this? Is perl supposed to compile the code? Are other languages supposed to compile their code? What is supposed to happen when trading YAML between environments? YAML is a portable format so I don't understand what it means when language specific things are folded into it. That's contrary to the point of YAML, isn't it?

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊