in reply to perlcritic compliant way to eval?
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,
-- Hauke D
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perlcritic compliant way to eval?
by KeighleHawk (Scribe) on Jul 20, 2016 at 20:48 UTC | |
by haukex (Archbishop) on Jul 22, 2016 at 11:44 UTC | |
by KeighleHawk (Scribe) on Jul 22, 2016 at 15:41 UTC |