Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Saving/restoring coderefs.

by radiantmatrix (Parson)
on Sep 12, 2007 at 20:29 UTC ( [id://638674]=note: print w/replies, xml ) Need Help??


in reply to Saving/restoring coderefs.

The YAML::Syck and YAML modules can store coderefs, with some configuration; however, you may wish to consider the implications of serializing code -- it will be eval'd on the way back in. Anyone who can edit the file in production (even if they can't edit your application source) will be able to execute arbitrary code by doing so.

I'm not saying necessarily that you don't want this behavior, but I am saying that you should be really sure that's what you want.

<radiant.matrix>
Ramblings and references
The Code that can be seen is not the true Code
I haven't found a problem yet that can't be solved by a well-placed trebuchet

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-24 00:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found