My guess by comparing the styles is that the author of ReadonlyX also wrote this PC-policy. (see below, it's from Dan Book)
And as already explained this module is far newer than PBP.
Nothing we could do about the cargo-cult policies of your company.
update
This seems to be the source of the policy Perl::Critic::Policy::Community::PreferredAlternatives and not PBP!
- Readonly
Readonly.pm is buggy and slow. Use Const::Fast or ReadonlyX instead, or the core pragma constant.
And now I ask myself, what is wrong with Const::Fast ?
| [reply] |
| [reply] |
| [reply] |
;-) I never said that "slow and buggy" came from PBP...I referenced the output of perlcritic from whence it came - what did come from PBP (and yes this is probably old advice) "use constants but don't use constant" - in any event you have shone some light on why Readonly and ReadonlyX clash - thank you so much for your responses! (and yes I wish corporate InfoSec folks had some common sense and realized that not everything spewed out by some analyzer should be taken as gospel)
| [reply] |