in reply to code to grab the latest version of a module from CPAN?

#!/usr/bin/perl # -- use strict; use warnings; use diagnostics; use CPAN; CPAN::Shell->install($ARGV[0]);

--hsm

"Never try to teach a pig to sing...it wastes your time and it annoys the pig."

Replies are listed 'Best First'.
Re^2: code to grab the latest version of a module from CPAN?
by adrianh (Chancellor) on Mar 07, 2004 at 17:37 UTC

    "I just want to download it, not install it." said the OP.

    CPAN::Shell->get('My::Module') (untested) should download and extract into your .cpan directory - wherever that may be. AFAIK CPAN doesn't expose anything with any more control.

Re: Re: code to grab the latest version of a module from CPAN?
by perrin (Chancellor) on Mar 07, 2004 at 17:33 UTC
    Doesn't that install it? I specifically want to simply download it, and not install it.

      I haven't used this module - just saw it on the CPAN updated modules list.

      Not sure if you want to untar the files as well as download them but this looks pretty close:

      uncpan - Utility to get and untar CPAN files.
      http://search.cpan.org/~qjzhou/uncpan-1.01/uncpan