![]() |
|
Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Accessing variables in an external hash without evalby afoken (Chancellor) |
on May 17, 2017 at 07:59 UTC ( #1190445=note: print w/replies, xml ) | Need Help?? |
Consider using a different storage format. I would choose JSON:
See also Re^4: The safety of string eval and block eval. and Re^2: Storing state of execution Updates: "Arbitary structures" was not meant as arbitary as I wrote, thanks tobyink++. It should read something like "any mix of scalars, arrays, and hashes, without circular references, handles, code references, globs". "Memory usage attack" means that either the parsed file uses significantly more memory (several orders of magnitute) than the file size, or parsing the file may execute code that allocates much memory. "Unexpected network access" means either that parsing the file completely and correctly may require reading additional data from the internet, or parsing the file may execute code that accesses the network. "8 bit clean" means that any binary data may be stored and fetched. Added comments column Added Data::Dumper Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|