05 Feb 2021 07:26:16 UTC
- Distribution: CPAN-PackageDetails
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (77 / 0 / 0)
- KwaliteeBus factor: 1
- 78.17% Coverage
- License: artistic_2
- Perl: v5.8.0
- Activity24 month
- Download (49.76KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionBDFOY brian d foy
This build file is a modulino; it works as both a build script and a module.
To build the distribution, run this file normally:
% perl Makefile.PL
But, it's more interesting than that. You can load it with
argumentsto get the data structure it passes to
my $package = require '/path/to/Makefile.PL'; my $arguments = $package->arguments;
require-ing a file makes an entry in
%INCfor exactly that name. If you try to
requireanother file with the same name, even from a different path,
requirethinks it has already loaded the file. As such, I recommend you always require the full path to the file.
The return value of the
requireis a package name (in this case, the name of the main module. Use that to call the
Even if this distribution needs a higher version of Perl, this bit only needs v5.8. You can play with the data structure with a primitive Perl.
Module Install Instructions
To install CPAN::PackageDetails, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install CPAN::PackageDetails
For more information on module installation, please visit the detailed CPAN module installation guide.