muntfish has asked for the wisdom of the Perl Monks concerning the following question:

When I issue the 'r' command from the CPAN shell (perl -MCPAN -e shell) it tells me:

5 installed modules have a version number of 0 169 installed modules have no parseable version number

I can't find a way of making it tell me which modules those are. Maybe it's not important, but I'm just curious.

I guess I could do this myself by using File::Find to traverse all the .pm files in all the directories in @INC, but that seems a bit much. If CPAN shell can tell me how many there are, why can't it tell me exactly what they are...? I searched the documentation and did some googling but have drawn a blank so far.


s^^unp(;75N=&9I<V@`ack(u,^;s|\(.+\`|"$`$'\"$&\"\)"|ee;/m.+h/&&print$&

Replies are listed 'Best First'.
Re: CPAN shell reports modules with "no parseable version number"
by brian_d_foy (Abbot) on Jan 14, 2006 at 14:44 UTC

    Have you tried creating an autobundle? That will create a snapshot file that contains the names of all of the installed modules along with their version numbers. You just have to look at the modules with a version number that is either 0 or undef.

    You can use my cpan(1) utility (which comes with CPAN.pm):

    $ cpan -a

    Or, if you want to drop into the CPAN.pm shell, you can issue the 'autobundle' command.

    $ cpan cpan shell -- CPAN exploration and modules installation (v1.7601) ReadLine support available (try 'install Bundle::CPAN') cpan> autobundle
    --
    brian d foy <brian@stonehenge.com>
    Subscribe to The Perl Review