dist-requires [-perl VERSION] [-all] { DIST_ARCHIVE_FILE | DIST_DIRECTORY } dist-requires -help
dist-requires will tell you which versions of which packages are required to build/test/run a distribution with a given version of perl. By default, all packages that were provided in that version of perl will be excluded from the output, unless the distribution requires a version newer than the one provided by that perl.
The only argument is the path to a distribution archive file (e.g. *.tar.gz file) or the path to a directory containing an unpacked distribution.
Specifies which version of perl to consider when evaluating which packages would be necessary. Version numbers can be represented as floating point numbers, or 'version strings'. So the following are all equivalent:
v5.12.3 5.12.3 5.012003
List all required packages, not just those that are not provided in the perl core. Setting the -all switch effectively makes the -perl option meaningless.
-all
-perl
Display usage information.
To install Dist::Requires, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Requires
CPAN shell
perl -MCPAN -e shell install Dist::Requires
For more information on module installation, please visit the detailed CPAN module installation guide.