Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Finding Module Versions - How Would You Do It?

by tobyink (Abbot)
on Feb 13, 2013 at 10:17 UTC ( #1018513=note: print w/ replies, xml ) Need Help??


in reply to Re: Finding Module Versions - How Would You Do It?
in thread Finding Module Versions - How Would You Do It?

Oh yes, I suppose I should have mentioned p5u, given that I wrote it. Sample output:

$ p5u v LWP::UserAgent LWP::UserAgent /home/tai/.perlbrew/libs/perl-5.16.2@default/lib/perl5/LWP/UserAge +nt.pm: 6.04

Or show the versions available on the CPAN:

$ p5u v -c LWP::UserAgent LWP::UserAgent cpan:GAAS/LWP5emu-0.01_01.tar.gz#lib/LWP/UserAgent.pm: 0.01_01 (19 +98-04-24T19:34:25.000Z) cpan:GAAS/libwww-perl-5.834.tar.gz#lib/LWP/UserAgent.pm: 5.834 (20 +09-11-21T13:09:14.000Z) cpan:GAAS/libwww-perl-5.835.tar.gz#lib/LWP/UserAgent.pm: 5.835 (20 +10-05-05T21:13:47.000Z) cpan:GAAS/libwww-perl-5.836.tar.gz#lib/LWP/UserAgent.pm: 5.836 (20 +10-05-13T07:34:58.000Z) cpan:GAAS/libwww-perl-5.837.tar.gz#lib/LWP/UserAgent.pm: 5.837 (20 +10-09-20T21:24:38.000Z) cpan:GAAS/libwww-perl-6.00.tar.gz#lib/LWP/UserAgent.pm: 6.00 (2011 +-03-08T19:25:05.000Z) cpan:GAAS/libwww-perl-6.01.tar.gz#lib/LWP/UserAgent.pm: 6.01 (2011 +-03-09T23:30:57.000Z) cpan:GAAS/libwww-perl-6.02.tar.gz#lib/LWP/UserAgent.pm: 6.02 (2011 +-03-27T11:35:01.000Z) cpan:GAAS/libwww-perl-6.03.tar.gz#lib/LWP/UserAgent.pm: 6.03 (2011 +-10-15T13:38:28.000Z)

Or the BackPAN:

$ p5u v -b LWP::UserAgent LWP::UserAgent backpan:GAAS/libwww-perl-5.00.tar.gz#lib/LWP/UserAgent.pm: 5.00 (1 +996-05-26T14:01:51.000Z) backpan:GAAS/libwww-perl-5.01.tar.gz#lib/LWP/UserAgent.pm: 5.01 (1 +996-08-02T16:38:58.000Z) [snip long output]

Or show a combination of the above:

$ p5u v -lcb LWP::UserAgent LWP::UserAgent /home/tai/.perlbrew/libs/perl-5.16.2@default/lib/perl5/LWP/UserAge +nt.pm: 6.04 cpan:GAAS/LWP5emu-0.01_01.tar.gz#lib/LWP/UserAgent.pm: 0.01_01 (19 +98-04-24T19:34:25.000Z) cpan:GAAS/libwww-perl-5.834.tar.gz#lib/LWP/UserAgent.pm: 5.834 (20 +09-11-21T13:09:14.000Z) cpan:GAAS/libwww-perl-5.835.tar.gz#lib/LWP/UserAgent.pm: 5.835 (20 +10-05-05T21:13:47.000Z) cpan:GAAS/libwww-perl-5.836.tar.gz#lib/LWP/UserAgent.pm: 5.836 (20 +10-05-13T07:34:58.000Z) cpan:GAAS/libwww-perl-5.837.tar.gz#lib/LWP/UserAgent.pm: 5.837 (20 +10-09-20T21:24:38.000Z) cpan:GAAS/libwww-perl-6.00.tar.gz#lib/LWP/UserAgent.pm: 6.00 (2011 +-03-08T19:25:05.000Z) cpan:GAAS/libwww-perl-6.01.tar.gz#lib/LWP/UserAgent.pm: 6.01 (2011 +-03-09T23:30:57.000Z) cpan:GAAS/libwww-perl-6.02.tar.gz#lib/LWP/UserAgent.pm: 6.02 (2011 +-03-27T11:35:01.000Z) cpan:GAAS/libwww-perl-6.03.tar.gz#lib/LWP/UserAgent.pm: 6.03 (2011 +-10-15T13:38:28.000Z) backpan:GAAS/libwww-perl-5.00.tar.gz#lib/LWP/UserAgent.pm: 5.00 (1 +996-05-26T14:01:51.000Z) backpan:GAAS/libwww-perl-5.01.tar.gz#lib/LWP/UserAgent.pm: 5.01 (1 +996-08-02T16:38:58.000Z) [snip long output]

Let's check if our currently installed version of LWP::UserAgent is reliable...

$ p5u testers -v 6.04 libwww-perl CPAN Testers results for libwww-perl version 6.04 PASS FAIL ETC Perl 5.006 0 0 40 Perl 5.008 256 15 1 Perl 5.010 282 3 3 Perl 5.012 670 2 3 Perl 5.014 510 16 2 Perl 5.016 309 26 0 Perl 5.017 229 32 0
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name


Comment on Re^2: Finding Module Versions - How Would You Do It?
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018513]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2015-07-04 20:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls