laziness, impatience, and hubris | |
PerlMonks |
Re: perlcritic compliant way to eval?by haukex (Archbishop) |
on Jul 20, 2016 at 17:37 UTC ( [id://1168158]=note: print w/replies, xml ) | Need Help?? |
Hi KeighleHawk, The default Perl::Critic doesn't seem to have a policy against the "do FILE" form of invoking code. But Perl::Critic is also just a set of hints that are sometimes very helpful, but sometimes the programmer knows better. If you know what you're doing with eval (security-wise etc.), I see no problem with sticking a ## no critic (ProhibitStringyEval) on that line. Lastly, if I may shamelessly plug one of my own modules, see my post from a little while ago: Undumping Perl, depending on what your data files look like it might work for you. Hope this helps,
In Section
Seekers of Perl Wisdom
|
|