TooMuchCode::ProhibitUnusedImport -- Find unused imports
An "Unused Import" is usually a subroutine name imported by a use statement. For example, the word Dumper in the following statement:
use
Dumper
use Data::Dumper qw<Dumper>;
If the rest of program has not mentioned the word Dumper, then it can be deleted.
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.