|
|
| Come for the quick hacks, stay for the epiphanies. | |
| PerlMonks |
Re^5: parse lisp style configby afoken (Chancellor) |
| on Nov 28, 2024 at 22:49 UTC ( [id://11162943]=note: print w/replies, xml ) | Need Help?? |
|
Why not just make your config a perl data structure? Because parsing Perl in a safe way is hard. You don't want to execute the "rm -rf /" in $config={ foo => `rm -rf /` }. See also:
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
|
|
||||||||||||||||||||||||||||||||||