/usr/share/perl5
NameSizeModeActions
App/-0755rm
Archive/-0755rm
Attribute/-0755rm
autodie/-0755rm
B/-0755rm
Carp/-0755rm
CGI/-0755rm
Class/-0755rm
Config/-0755rm
CPAN/-0755rm
CPANPLUS/-0755rm
DBIx/-0755rm
DBM_Filter/-0755rm
Devel/-0755rm
Digest/-0755rm
Encode/-0755rm
encoding/-0755rm
Exporter/-0755rm
ExtUtils/-0755rm
File/-0755rm
Filter/-0755rm
Getopt/-0755rm
HTML/-0755rm
I18N/-0755rm
IO/-0755rm
IPC/-0755rm
JSON/-0755rm
Locale/-0755rm
Log/-0755rm
Math/-0755rm
Memoize/-0755rm
Module/-0755rm
Net/-0755rm
Object/-0755rm
overload/-0755rm
Package/-0755rm
Params/-0755rm
Parse/-0755rm
PerlIO/-0755rm
Pod/-0755rm
pod/-0755rm
Search/-0755rm
TAP/-0755rm
Term/-0755rm
Test/-0755rm
Test2/-0755rm
Text/-0755rm
Thread/-0755rm
Tie/-0755rm
Time/-0755rm
Unicode/-0755rm
unicore/-0755rm
URI/-0755rm
User/-0755rm
vendor_perl/-0755rm
version/-0755rm
warnings/-0755rm
abbrev.pl8380644editdlrm
AnyDBM_File.pm25940644editdlrm
assert.pl12980644editdlrm
attributes.pm148770644editdlrm
autodie.pm117630644editdlrm
AutoLoader.pm149970644editdlrm
AutoSplit.pm196370644editdlrm
autouse.pm42380644editdlrm
base.pm69860644editdlrm
Benchmark.pm285300644editdlrm
bigfloat.pl73680644editdlrm
bigint.pl89590644editdlrm
bigint.pm178520644editdlrm
bignum.pm186730644editdlrm
bigrat.pl44760644editdlrm
bigrat.pm144420644editdlrm
blib.pm21060644editdlrm
bytes.pm23840644editdlrm
bytes_heavy.pl7580644editdlrm
cacheout.pl11220644editdlrm
Carp.pm76110644editdlrm
CGI.pm2614780644editdlrm
charnames.pm156700644editdlrm
complete.pl31910644editdlrm
constant.pm125280644editdlrm
CORE.pod15690644editdlrm
CPAN.pm1309070644editdlrm
CPANPLUS.pm72690644editdlrm
ctime.pl19930644editdlrm
DB.pm192020644editdlrm
DBM_Filter.pm144150644editdlrm
diagnostics.pm173800644editdlrm
Digest.pm104120644editdlrm
DirHandle.pm19370644editdlrm
dotsh.pl21750644editdlrm
Dumpvalue.pm168990644editdlrm
dumpvar.pl152750644editdlrm
English.pm44880644editdlrm
Env.pm51700644editdlrm
exceptions.pl17360644editdlrm
Expect.pm547250644editdlrm
Expect.pod437350644editdlrm
Exporter.pm185950644editdlrm
fastcwd.pl10190644editdlrm
Fatal.pm409660644editdlrm
feature.pm50920644editdlrm
fields.pm95070644editdlrm
FileCache.pm55700644editdlrm
FileHandle.pm67780644editdlrm
filetest.pm40030644editdlrm
find.pl11850644editdlrm
FindBin.pm56580644editdlrm
finddepth.pl11300644editdlrm
flush.pl6420644editdlrm
getcwd.pl14270644editdlrm
getopt.pl13220644editdlrm
getopts.pl14060644editdlrm
hostname.pl7270644editdlrm
if.pm11660644editdlrm
importenv.pl2830644editdlrm
integer.pm32660644editdlrm
less.pm30840644editdlrm
locale.pm8200644editdlrm
look.pl12550644editdlrm
Memoize.pm352950644editdlrm
newgetopt.pl22130644editdlrm
NEXT.pm184810644editdlrm
ok.pm9670444editdlrm
open.pm77400644editdlrm
open2.pl1850644editdlrm
open3.pl1850644editdlrm
overload.pm480500644editdlrm
overloading.pm18010644editdlrm
parent.pm29980644editdlrm
perl5db.pl3176820644editdlrm
PerlIO.pm111220644editdlrm
pwd.pl14780644editdlrm
Safe.pm243260644editdlrm
SelectSaver.pm10760644editdlrm
SelfLoader.pm173410644editdlrm
Shell.pm86850644editdlrm
shellwords.pl2760644editdlrm
sigtrap.pm76110644editdlrm
sort.pm60930644editdlrm
stat.pl5900644editdlrm
strict.pm37160644editdlrm
subs.pm8420644editdlrm
Switch.pm285080644editdlrm
Symbol.pm47940644editdlrm
syslog.pl48060644editdlrm
tainted.pl1640644editdlrm
termcap.pl41140644editdlrm
Test.pm288000644editdlrm
Test2.pm63930444editdlrm
Thread.pm82850644editdlrm
timelocal.pl6900644editdlrm
UNIVERSAL.pm65360644editdlrm
utf8.pm69180644editdlrm
utf8_heavy.pl80010644editdlrm
validate.pl37310644editdlrm
vars.pm23580644editdlrm
version.pm10370644editdlrm
version.pod123150644editdlrm
vmsish.pm43280644editdlrm
warnings.pm161330644editdlrm
Edit: /usr/share/perl5/CPANPLUS.pm (7269B)
package CPANPLUS; use strict; use Carp; use CPANPLUS::Error; use CPANPLUS::Backend; use Locale::Maketext::Simple Class => 'CPANPLUS', Style => 'gettext'; BEGIN { use Exporter (); use vars qw( @EXPORT @ISA $VERSION ); @EXPORT = qw( shell fetch get install ); @ISA = qw( Exporter ); $VERSION = "0.88"; #have to hardcode or cpan.org gets unhappy } ### purely for backward compatibility, so we can call it from the commandline: ### perl -MCPANPLUS -e 'install Net::SMTP' sub install { my $cpan = CPANPLUS::Backend->new; my $mod = shift or ( error(loc("No module specified!")), return ); if ( ref $mod ) { error( loc( "You passed an object. Use %1 for OO style interaction", 'CPANPLUS::Backend' )); return; } else { my $obj = $cpan->module_tree($mod) or ( error(loc("No such module '%1'", $mod)), return ); my $ok = $obj->install; $ok ? msg(loc("Installing of %1 successful", $mod),1) : msg(loc("Installing of %1 failed", $mod),1); return $ok; } } ### simply downloads a module and stores it sub fetch { my $cpan = CPANPLUS::Backend->new; my $mod = shift or ( error(loc("No module specified!")), return ); if ( ref $mod ) { error( loc( "You passed an object. Use %1 for OO style interaction", 'CPANPLUS::Backend' )); return; } else { my $obj = $cpan->module_tree($mod) or ( error(loc("No such module '%1'", $mod)), return ); my $ok = $obj->fetch( fetchdir => '.' ); $ok ? msg(loc("Fetching of %1 successful", $mod),1) : msg(loc("Fetching of %1 failed", $mod),1); return $ok; } } ### alias to fetch() due to compatibility with cpan.pm ### sub get { fetch(@_) } ### purely for backwards compatibility, so we can call it from the commandline: ### perl -MCPANPLUS -e 'shell' sub shell { my $option = shift; ### since the user can specify the type of shell they wish to start ### when they call the shell() function, we have to eval the usage ### of CPANPLUS::Shell so we can set up all the checks properly eval { require CPANPLUS::Shell; CPANPLUS::Shell->import($option) }; die $@ if $@; my $cpan = CPANPLUS::Shell->new(); $cpan->shell(); } 1; __END__ =pod =head1 NAME CPANPLUS - API & CLI access to the CPAN mirrors =head1 SYNOPSIS ### standard invocation from the command line $ cpanp $ cpanp -i Some::Module $ perl -MCPANPLUS -eshell $ perl -MCPANPLUS -e'fetch Some::Module' =head1 DESCRIPTION The C library is an API to the C mirrors and a collection of interactive shells, commandline programs, etc, that use this API. =head1 GUIDE TO DOCUMENTATION =head2 GENERAL USAGE This is the document you are currently reading. It describes basic usage and background information. Its main purpose is to assist the user who wants to learn how to invoke CPANPLUS and install modules from the commandline and to point you to more indepth reading if required. =head2 API REFERENCE The C API is meant to let you programmatically interact with the C mirrors. The documentation in L shows you how to create an object capable of interacting with those mirrors, letting you create & retrieve module objects. L shows you how you can use these module objects to perform actions like installing and testing. The default shell, documented in L is also scriptable. You can use its API to dispatch calls from your script to the CPANPLUS Shell. =cut =head1 COMMANDLINE TOOLS =head2 STARTING AN INTERACTIVE SHELL You can start an interactive shell by running either of the two following commands: $ cpanp $ perl -MCPANPLUS -eshell All commans available are listed in the interactive shells help menu. See C or L for instructions on using the default shell. =head2 CHOOSE A SHELL By running C without arguments, you will start up the shell specified in your config, which defaults to L. There are more shells available. C itself ships with an emulation shell called L that looks and feels just like the old C shell. You can start this shell by typing: $ perl -MCPANPLUS -e'shell Classic' Even more shells may be available from C. Note that if you have changed your default shell in your configuration, that shell will be used instead. If for some reason there was an error with your specified shell, you will be given the default shell. =head2 BUILDING PACKAGES C is a commandline tool to convert any distribution from C into a package in the format of your choice, like for example C<.deb> or C. See C for details. =head1 FUNCTIONS For quick access to common commands, you may use this module, C rather than the full programmatic API situated in C. This module offers the following functions: =head2 $bool = install( Module::Name | /A/AU/AUTHOR/Module-Name-1.tgz ) This function requires the full name of the module, which is case sensitive. The module name can also be provided as a fully qualified file name, beginning with a I, relative to the /authors/id directory on a CPAN mirror. It will download, extract and install the module. =head2 $where = fetch( Module::Name | /A/AU/AUTHOR/Module-Name-1.tgz ) Like install, fetch needs the full name of a module or the fully qualified file name, and is case sensitive. It will download the specified module to the current directory. =head2 $where = get( Module::Name | /A/AU/AUTHOR/Module-Name-1.tgz ) Get is provided as an alias for fetch for compatibility with CPAN.pm. =head2 shell() Shell starts the default CPAN shell. You can also start the shell by using the C command, which will be installed in your perl bin. =head1 FAQ For frequently asked questions and answers, please consult the C manual. =head1 BUG REPORTS Please report bugs or other issues to Ebug-cpanplus@rt.cpan.org. =head1 AUTHOR This module by Jos Boumans Ekane@cpan.orgE. =head1 COPYRIGHT The CPAN++ interface (of which this module is a part of) is copyright (c) 2001 - 2007, Jos Boumans Ekane@cpan.orgE. All rights reserved. This library is free software; you may redistribute and/or modify it under the same terms as Perl itself. =head1 SEE ALSO L, L, L, L, L, L =head1 CONTACT INFORMATION =over 4 =item * Bug reporting: I =item * Questions & suggestions: I =back =cut # Local variables: # c-indentation-style: bsd # c-basic-offset: 4 # indent-tabs-mode: nil # End: # vim: expandtab shiftwidth=4: