Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Re: Recreating hash from Data::Dumper text

by theguvnor (Chaplain)
on Apr 15, 2004 at 19:29 UTC ( #345513=note: print w/replies, xml ) Need Help??

in reply to Re: Recreating hash from Data::Dumper text
in thread Recreating hash from Data::Dumper text

Thanks for the tip; I looked briefly into Storable and it appears it does use eval internally. From the documentation:

Since Storable version 2.05, CODE references may be serialized with the help of B::Deparse. To enable this feature, set $Storable::Deparse to a true value. To enable deserializazion, $Storable::Eval should be set to a true value. Be aware that deserialization is done through eval, which is dangerous if the Storable file contains malicious data. You can set $Storable::Eval to a subroutine reference which would be used instead of eval. See below for an example using a Safe compartment for deserialization of CODE references.

Still useful, but subject to the caveats with any use of eval.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2020-03-29 05:46 GMT
Find Nodes?
    Voting Booth?
    To "Disagree to disagree" means to:

    Results (169 votes). Check out past polls.