App::CPAN::Get - Base class for cpan-get script.
use App::CPAN::Get; my $app = App::CPAN::Get->new; my $exit_code = $app->run;
new
my $app = App::CPAN::Get->new;
Constructor.
run
my $exit_code = $app->run;
Run.
Returns 1 for error, 0 for success.
new(): From Class::Utils::set_params(): Unknown parameter '%s'. Parameter 'lwp_user_agent' must be a LWP::UserAgent instance. run(): Cannot download '%s'. Module '%s' doesn't exist. Value 'download_uri' doesn't exist. Value 'uri' doesn't exist.
use strict; use warnings; use App::CPAN::Get; # Arguments. @ARGV = ( 'App::Pod::Example', ); # Run. exit App::CPAN::Get->new->run; # Output like: # Package on 'http://cpan.metacpan.org/authors/id/S/SK/SKIM/App-Pod-Example-0.19.tar.gz' was downloaded.
Class::Utils, Error::Pure, Getopt::Std, IO::Barf, LWP::UserAgent Menlo::Index::MetaCPAN URI::cpan.
https://github.com/michal-josef-spacek/App-CPAN-Get
Michal Josef Špaček mailto:skim@cpan.org
http://skim.cz
© 2021 Michal Josef Špaček
BSD 2-Clause License
0.02
To install App::CPAN::Get, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::CPAN::Get
CPAN shell
perl -MCPAN -e shell install App::CPAN::Get
For more information on module installation, please visit the detailed CPAN module installation guide.