in reply to How Critical is Critic?
I was surprised it didn't like this use of eval:our $VERSION = '0.1_1'; $VERSION = eval $VERSION;
I wasn't. During many years of code reviewing inexperienced Perl coder's efforts over the years, I've noticed that block eval tends to be under-used, stringy eval over-used.
Bod, I would certainly grill you during our code review meeting to "please explain" why on earth you're resorting to the dreaded stringy eval for such a simple chore, and to please describe the alternatives you'd considered and rejected before doing so. :)
For more background on this topic see: string eval vs block eval
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How Critical is Critic?
by Bod (Parson) on May 29, 2023 at 18:03 UTC | |
by eyepopslikeamosquito (Archbishop) on May 29, 2023 at 21:42 UTC | |
by Bod (Parson) on May 29, 2023 at 22:20 UTC | |
by Haarg (Priest) on May 30, 2023 at 03:03 UTC | |
by hv (Prior) on May 29, 2023 at 23:26 UTC | |
by Bod (Parson) on May 29, 2023 at 22:27 UTC | |
by Bod (Parson) on May 30, 2023 at 11:22 UTC |