in reply to Re^2: unable to eval dumped hash
in thread unable to eval dumped hash
There is also the Safe module for evaluating untrusted input while limiting possible damage.
That way requires a LOT of trust in the safety of Safe. One error in Safe or simply in the actual configuration of Safe and you are in BIG trouble.
The safe way of saving and restoring data is to handle it as data, not as code. See also Re: Accessing variables in an external hash without eval, Re^4: Accessing the hash name in perl, Re^2: DBI fetchall_hashref convert to scalar, Re^2: DBI fetchall_hashref convert to scalar, Re: What's the right way to include a config file as a .pm bareword?.
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: unable to eval dumped hash
by jcb (Parson) on Apr 30, 2020 at 01:28 UTC | |
by haukex (Archbishop) on May 02, 2020 at 09:39 UTC |