App::CPAN::Search - Base class for cpan-search script.
use App::CPAN::Search; my $app = App::CPAN::Search->new; my $exit_code = $app->run;
new
my $app = App::CPAN::Search->new;
Constructor.
run
my $exit_code = $app->run;
Run.
Returns 1 for error, 0 for success.
use strict; use warnings; use App::CPAN::Search; # Arguments. @ARGV = ( 'Library', ); # Run. exit App::CPAN::Search->new->run; # Output like: # Reading '/home/skim/.local/share/.cpan/Metadata' # Database was generated on Tue, 29 Dec 2015 21:53:32 GMT # Module id = Library::CallNumber::LC # CPAN_USERID DBWELLS (Dan Wells <CENSORED>) # CPAN_VERSION 0.23 # CPAN_FILE D/DB/DBWELLS/Library-CallNumber-LC-0.23.tar.gz # MANPAGE Library::CallNumber::LC - Deal with Library-of-Congress call numbers # INST_FILE /home/skim/perl5/lib/perl5/Library/CallNumber/LC.pm # INST_VERSION 0.23
CPAN, Getopt::Std.
https://github.com/michal-josef-spacek/App-CPAN-Search
Michal Josef Špaček mailto:skim@cpan.org
http://skim.cz
© 2015-2021 Michal Josef Špaček
BSD 2-Clause License
0.05
To install App::CPAN::Search, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::CPAN::Search
CPAN shell
perl -MCPAN -e shell install App::CPAN::Search
For more information on module installation, please visit the detailed CPAN module installation guide.