Perl::PrereqScanner::Scanner::Perl5(3pm)

Perl::PrereqScanner::Scanner::Perl53pm

Scan for core perl 5 language indicators of required modules

Version

version 1.100

Overview

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

•

regular inheritance declared with the "base" and "parent" pragmata

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 );".

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.

•

"minimum_version" must be a literal number, v-string, or single-quoted string. Double quotes are not allowed.

Perl version

This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years.

Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 5 times.

  1. 6.0
  2. 7
  3. 8
  4. 9–11
  5. 12
  6. 13

Authors

•

Jerome Quelin

•

Ricardo Signes <[email protected]>

From libperl-prereqscanner-perl 1.100-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.