measureperl - count lines, packages, subs and complexity of Perl files.
Show all metrics measureperl FILE_OR_DIRECTORY [FILE_OR_DIRECTORY ....] ex) measureperl lib
Show only errors in subroutines measureperl -e lib
Show only method which sloc is 50 and mccabe's complexity is over 10 measureperl -e -l 50 -c 10 lib
At least one file or directory path must be supplied.
To install Perl::Metrics::Lite, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::Metrics::Lite
CPAN shell
perl -MCPAN -e shell install Perl::Metrics::Lite
For more information on module installation, please visit the detailed CPAN module installation guide.