Dist::Surveyor::MakeCpan - Create a Mini-CPAN for the surveyed modules
use Dist::Surveyor::MakeCpan; my $cpan = Dist::Surveyor::MakeCpan->new( $cpan_dir, $progname, $irregularities); foreach my $rel (@releases) { $cpan->add_release($rel); } $cpan->close(); say "There where ", $cpan->errors(), " errors";
Create a mini-CPAN for the surveyed modules, so you will be able to re-install the same setup in a new computer.
my $cpan = Dist::Surveyor::MakeCpan->new( $cpan_dir, $progname, $irregularities, $verbose);
The directory where the mini-cpan will be created
The name of the running program - will be used to create a subdirectory inside $cpan_dir, that will contain debug information.
A hashref with a list of irregular named releases. i.e. 'libwww-perl' => 'LWP'.
Add one release to the mini-cpan. the $rel should be a hashref, and contain the following fields:
$rel = { download_url => 'http://cpan.metacpan.org/authors/id/S/SE/SEMUELF/Dist-Surveyor-0.009.tar.gz', url => 'authors/id/S/SE/SEMUELF/Dist-Surveyor-0.009.tar.gz', author => 'SEMUELF', name => 'Dist-Surveyor-0.009', distribution => 'Dist-Surveyor', }
Close the mini-CPAN, and close all the debug data dump files.
Please see Dist::Surveyor for details
To install Dist::Surveyor, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Surveyor
CPAN shell
perl -MCPAN -e shell install Dist::Surveyor
For more information on module installation, please visit the detailed CPAN module installation guide.