NAME
App::CPAN::Search - Base class for cpan-search script.
SYNOPSIS
use App::CPAN::Search;
my $app = App::CPAN::Search->new;
my $exit_code = $app->run;
METHODS
new
my $app = App::CPAN::Search->new;
Constructor.
Returns instance of object.
run
my $exit_code = $app->run;
Run.
Returns 1 for error, 0 for success.
EXAMPLE
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
DEPENDENCIES
REPOSITORY
https://github.com/michal-josef-spacek/App-CPAN-Search
AUTHOR
Michal Josef Špaček mailto:skim@cpan.org
LICENSE AND COPYRIGHT
© 2015-2024 Michal Josef Špaček
BSD 2-Clause License
VERSION
0.11