Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: How to get code from a coderef?

by diego_de_lima (Beadle)
on Jan 20, 2006 at 21:41 UTC ( #524588=note: print w/replies, xml ) Need Help??


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?

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://524588]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2022-05-28 16:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (99 votes). Check out past polls.

    Notices?