Perl::Metrics::Plugin::MinimumVersion - Perl::Metrics plugin for Perl::MinimumVersion
This is a Perl::Metrics "plugin" that generated the two primary metrics generated by the Perl::MinimumVersion module. These are the minimum explicit perl version dependency, and the minimum syntax perl version dependency.
While this is an actual plugin to be used to real purposes, it provides a suitable example of a simple plugin which brings functionality from a PPI-based module into the larger Perl::Metrics framework.
In addition, because the results could change based on changes to Perl::MinimumVersion this module also demonstrates the user of "versioned" metrics.
The metrics method is overloaded to return an explicit list of metrics, with the appropriate metric versions based on the version of Perl::MinimumVersion.
metrics
Provides the metric 'explicit', the minimum explicit version provided as a normalized and serialized version object.
Provides the metric 'syntax', the minimum explicit version provided as a normalized and serialized version object.
Bugs should be reported via the CPAN bug tracker at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Perl-Metrics-Plugin-MinimumVersion
For other issues, contact the author.
Adam Kennedy <adamk@cpan.org>
Perl::Metrics::Plugin, Perl::Metrics, Perl::MinimumVersion, PPI
Copyright 2005 - 2008 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
To install Perl::Metrics::Plugin::MinimumVersion, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::Metrics::Plugin::MinimumVersion
CPAN shell
perl -MCPAN -e shell install Perl::Metrics::Plugin::MinimumVersion
For more information on module installation, please visit the detailed CPAN module installation guide.