clscott has asked for the wisdom of the Perl Monks concerning the following question:

According to the offical docmentation for the CPAN module http://www.perldoc.com/perl5.6.1/lib/CPAN.html#Bundles
or perldoc CPAN.

I have a stock perl 5.6.1 on Debian Linux (compiled not from .deb). I'm now trying to 'get' Bundles from CPAN both custom Bundles and CPAN bundles (like Bundle::DBI).

I'm noticing that CPAN is always downloading the most recent version and not the specified version. Is there something wrong with CPAN.pm or is it my bundle?

package Bundle::Mine; $VERSION = 1.5; __END__ =head1 SYNOPSIS perl -MCPAN -e 'install Bundle::Mine' =head1 CONTENTS Net::Syslog 0.03 - for syslog Net::SNMP 3.65 - for SNMP LWP::Simple 1.35 - for http Proc::Daemon 0.02 - for daemons Date::Manip 5.40 - for Utils Storable 1.0.14 - for DBI Net::Daemon 0.22 - for DBI RPC::PlServer 0.2001 - for DBI Getopt::Long 2.17 - for DBI::Shell DBI 1.21 - for Database Interaction DBD::Multiplex 1.8 - for DBI DBD::Pg 1.12 - for Postgres =head1 DESCRIPTION This bundle includes all the CPAN modules used by Me =head1 AUTHOR clscott

--
Clayton

Replies are listed 'Best First'.
Re: CPAN ingnore module version in Bundles?
by lachoy (Parson) on Apr 25, 2002 at 14:13 UTC

    I think the version number in the Bundle is an 'at least' number rather than an 'exactly' number. So a '1.00' version will always get '1.00' or higher or complain loudly that the prereq cannot be met.

    Chris
    M-x auto-bs-mode

Re: CPAN ingnore module version in Bundles?
by JPeacock (Novice) on Jul 24, 2002 at 14:06 UTC
    I just got bit by this as well. If you are creating your own bundle and need to specify a certain module, you can refer to it by the full CPAN name/path, so for example, if you _really_ have to use DBI 1.21, you can include this in your bundle:
    TIMB/DBI-1.21.tar.gz
    and that is the only version that gets installed.