Subject: | Perl::Critic::Policy::ValuesAndExpressions::ProhibitMagicNumbers shouldn't recommend "use constant" |
If a different number than the allowed literal values (0, 1, 2) is used,
then the user sees the warning:
Use the Readonly or Const::Fast module or the "constant" pragma instead
However, if the user really uses the constant pragma instead, then he
sees a new warning
Pragma "constant" used
with a higher severity level than before.
Probably the "use constant" hint should be removed in the
ProhibitMagicNumbers policy.
Regards,
Slaven