Perl::Metrics::Lite - Pluggable Perl Code Metrics System
use Perl::Metrics::Lite; my $analzyer = Perl::Metrics::Lite->new; my $analysis = $analzyer->analyze_files(@ARGV); my $file_stats = $analysis->file_stats; my $sub_stats = $analysis->sub_stats;
Perl::Metrics::Lite is the pluggable perl code metrics system.
Perl::Metrics::Lite provides just enough methods to run static analysis of one or many Perl files and obtain a few metrics.
Perl::Metrics::Lite is far simpler than Perl::Metrics and more extensible than Perl::Metrics::Simple.
See the measureperl and measureperl-checkstyle script (included with this distribution) for a simple example of usage.
Takes no arguments and returns a new Perl::Metrics::Lite object.
Takes an array of files and or directory paths, and/or SCALAR refs to file contents and returns an Perl::Metrics::Lite::Analysis object.
This source is in Github:
http://github.com/dann/p5-perl-metrics-lite
Many thanks to:
Dann <techmemo{at}gmail.com>
Perl::Metrics Perl::Metrics::Simple
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
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.