New, improved cpan(1)

brian_d_foy on 2005-12-24T06:25:24

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    bdfoy@cpan.org            brian d foy
Tie::Toggle               BDFOY    bdfoy@cpan.org            brian d foy
CGI::Prototype            MERLYN   merlyn@stonehenge.com     Randal L. Schwartz


Get the module list for an author:

$ cpan -L BDFOY
Apache::Htaccess
Apache::iTunes
...yadda yadda...
Tie::Cycle
Tie::Toggle       


Get the module details:

$ cpan -D Tie::Cycle
Tie::Cycle
-------------------------------------------------------------------------
        Cycle through a list of values via a scalar.
        B/BD/BDFOY/Tie-Cycle-1.12.tar.gz
        /usr/local/lib/perl5/site_perl/5.8.4/Tie/Cycle.pm
        Installed: 1.12
        CPAN:      1.12  up to date
        brian d foy (BDFOY)
        bdfoy@cpan.org 


Good Work

jonasbn on 2005-12-24T06:59:56

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.

jonasbn
 

This isn't the cpan on debian?

Alias on 2005-12-24T08:51:59

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

Re:This isn't the cpan on debian?

brian_d_foy on 2005-12-24T16:37:17

The cpan(1) command without arguments simply starts up the shell for you. I still use the shell, but don't want to type "perl -MCPAN -e shell". :)