Perl::PrereqScanner::Scanner::Perl5 - scan for core Perl 5 language indicators of required modules
version 1.022
This scanner will look for the following indicators:
plain lines beginning with use, require, or no in your perl modules and scripts, including minimum perl version
use
require
no
regular inheritance declared with the base and parent pragmata
base
parent
Since Perl does not allow you to supply a version requirement with a require statement, the scanner will check the statement after the require Module to see if it is Module->VERSION( minimum_version );.
require Module
Module->VERSION( minimum_version );
In order to provide a minimum version, that method call must meet the following requirements:
it must be the very next statement after require Module. Nothing can separate them but whitespace and comments (and one semicolon).
Module must be a bareword, and match the require exactly.
Module
minimum_version must be a literal number, v-string, or single-quoted string. Double quotes are not allowed.
minimum_version
Jerome Quelin
Ricardo Signes <rjbs@cpan.org>
This software is copyright (c) 2009 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Perl::PrereqScanner, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::PrereqScanner
CPAN shell
perl -MCPAN -e shell install Perl::PrereqScanner
For more information on module installation, please visit the detailed CPAN module installation guide.