Please don't think I am "having a go", because I am not, but I don't get this. And I don't get it at multiple levels.
The point of CPAN, and code reuse in general, is to leverage existing solutions. You have an existing solution! Why replace it?
I've seen the claim made that you avoid maintenance by using CPAN, because someone else maintains them, but that makes no sense. Maintenance is only required if something breaks; or changes.
With the code in house, you can make the changes easily and quickly.
With a CPAN module you would have to
And you still have to test their changes are compatible with your code-base and don't break anything else.
And you create a dependency, and subject your code to the vulnerability that the author may change his module in a way that breaks your code in some future release.
Where is the saving, ROI, code-reuse that comes from discarding your in-house working solution, for a speculative, third party equivalent?
But,
In other words, every piece of Perl code you run, gets eval'd.
Why is is good enough for the rest of your code-base, and not for this piffling little config file?
On that basis, you will need to write your own Perl Interpreter, (in some language other than Perl!), so that you can untaint the rest of your code-base?
You could then use one of the dozens of existing config modules that doesn't use eval.
In reply to Re: "eval"ing a hash without eval
by BrowserUk
in thread "eval"ing a hash without eval
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |