[sf-perl] find latest version of module from cpan

Matthew Lanier matt at lanier.org
Mon Aug 2 20:06:19 PDT 2010


w00t!

m@

On Mon, 2 Aug 2010, Paul Makepeace wrote:

> On Mon, Aug 2, 2010 at 14:47, Matthew Lanier <matt at lanier.org> wrote:
>> folks-
>>
>> i'm looking for a way, either by probing cpan.perl.org via lwp, or via the
>> cpan shell, to find out the latest available version of a module
>> programatically.  constraints are:
>
> Second field after the first para in,
> http://www.perl.com/CPAN/modules/02packages.details.txt
> http://www.cpan.org/modules/02packages.details.txt
>
> *pokes around*
>
> print "$module latest version is ",
>  CPAN::Shell->expand(Module => $module)->cpan_version;
>
> seems to work...
>
> Paul
> _______________________________________________
> SanFrancisco-pm mailing list
> SanFrancisco-pm at pm.org
> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm
>


More information about the SanFrancisco-pm mailing list