TooMuchCode::ProhibitUnnecessaryScalarKeyword
This policy dictates that the use of `scalar` for in statement like this needs to be removed:
my $n = scalar @items;
If the left-hand side of assigiment is a single scalar variable, then the assignment is in scalar contetx. There is no need to add scalar keyword.
scalar
1;
To install Perl::Critic::TooMuchCode, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::Critic::TooMuchCode
CPAN shell
perl -MCPAN -e shell install Perl::Critic::TooMuchCode
For more information on module installation, please visit the detailed CPAN module installation guide.