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?? |
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
In Section
Seekers of Perl Wisdom
|
|