Perl::Critic::Policy::Variables::ProhibitNumericNamesWithLeadingZero - Don't use numeric variable names with leading zeroes.
This Policy is stand-alone, and is not part of the core Perl::Critic.
Numeric variable names with leading zeroes are unsupported by Perl, and can lead to obscure bugs. In particular, they are not (or not straightforwardly) accessible as ${0nnn}.
${0nnn}
Starting with Perl 5.32, these variables represent a syntax error, so this policy is useless with current Perls. On the other hand, it may be useful for those with an older code base, especially if they are preparing to upgrade it.
This policy supports no configuration items above and beyond the standard ones.
Support is by the author. Please file bug reports at https://rt.cpan.org/Public/Dist/Display.html?Name=Perl-Critic-Policy-Variables-ProhibitUnusedVarsStricter, https://github.com/trwyant/perl-Perl-Critic-Policy-Variables-ProhibitUnusedVarsStricter/issues, or in electronic mail to the author.
Thomas R. Wyant, III wyant at cpan dot org
Copyright (C) 2022 Thomas R. Wyant, III
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full text of the licenses in the directory LICENSES.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
To install Perl::Critic::Policy::Variables::ProhibitNumericNamesWithLeadingZero, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::Critic::Policy::Variables::ProhibitNumericNamesWithLeadingZero
CPAN shell
perl -MCPAN -e shell install Perl::Critic::Policy::Variables::ProhibitNumericNamesWithLeadingZero
For more information on module installation, please visit the detailed CPAN module installation guide.