Bundles

Chapter 1 - CPAN
by?Sam Tregar?
Apress ? 2002
has companion web siteCompanion Web Site

A bundle is a module that allows you to install a list of modules automatically using the CPAN module. A bundle is simply a module in the Bundle:: namespace containing a list of modules to download; it doesn't contain other modules. A bundle can also specify the versions of the modules to be downloaded, so that it can serve as a "known-good" module set.

To use a bundle, simple install it with the CPAN module. For example, to install Bundle::CPAN, enter the following:

 # perl -MCPAN -e shell cpan> install Bundle::CPAN 

There are bundles available for many popular module groups: Bundle::LWP, Bundle::DBI, and Bundle::Apache, for example. To get a list of all bundles on CPAN, use the bundle search command b in the CPAN shell:

 cpan> b /Bundle::/ Bundle             Bundle::ABH         (A/AB/ABH/Bundle-ABH-1.05.tar.gz) Bundle             Bundle::ABH::Apache (A/AB/ABH/Bundle-ABH-1.05.tar.gz) ... 



Writing Perl Modules for CPAN
Writing Perl Modules for CPAN
ISBN: 159059018X
EAN: 2147483647
Year: 2002
Pages: 110
Authors: Sam Tregar

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net