Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

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

by diego_de_lima (Beadle)
on Jan 20, 2006 at 21:41 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-25 22:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found