Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Saturday December 24, 2005
01:25 AM

New, improved cpan(1)

[ #28115 ]

Jim Brandt sent me a patch to my cpan(1) script so it could fetch the Changes file. While I was adjusting things to add that patch, I added a couple other things that I've always wanted. Here's teh new features in cpan-1.5:

Get the Changes file:

$ cpan -C Tie::Cycle
Revision history for Perl extension Tie::Cycle.
1.11 - Mon Jan  3 16:47:10 2005
* Previously, this module refused to work unless the input array had
more than one element.  What's the point of cycling otherwise?  I've
removed that restriction, though, because I shouldn't be the one who
gets to decide that.  A one element array should get a chance to act
like any other array.  It just happens to have one element.
1.09 - Thu Sep  2 19:56:41 2004
        * Just some distribution fixes.  No need to upgrade.

Get the author details for modules:

$ cpan -A Tie::Cycle Tie::Toggle CGI::Prototype
Tie::Cycle                BDFOY            brian d foy
Tie::Toggle               BDFOY            brian d foy
CGI::Prototype            MERLYN     Randal L. Schwartz

Get the module list for an author:

$ cpan -L BDFOY
...yadda yadda...

Get the module details:

$ cpan -D Tie::Cycle
-------------------------------------------------------- -----------------
        Cycle through a list of values via a scalar.
        Installed: 1.12
        CPAN:      1.12  up to date
        brian d foy (BDFOY)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Nice to see new features added to a good piece of software like CPAN, I used the reload index command in the CPAN shell for the first time the other day. I love when a piece of software has the features you require.

  • On debian, "cpan" will take you to the CPAN shell...

    Is this what this cpan does as well as the command line things?

    If not, does this mean you can't have both installed?

    Adam K