NAME
TooMuchCode::ProhibitUnusedImport -- Find unused imports
DESCRIPTION
An "Unused Import" is usually a subroutine name imported by a use
statement. For example, the word Dumper
in the following statement:
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::Policy::TooMuchCode::ProhibitUnusedImport, simply copy and paste either of the commands in to your terminal
cpanm
cpanm Perl::Critic::Policy::TooMuchCode::ProhibitUnusedImport
CPAN shell
perl -MCPAN -e shell
install Perl::Critic::Policy::TooMuchCode::ProhibitUnusedImport
For more information on module installation please visit the detailed CPAN module installation guide.