Parse::CPAN::Authors - what is this good for!? What does it do!?

Hello dear community,

Parse-CPAN-Authors - what is this good for?

see
what does this do



 use Parse::CPAN::Authors;

  # must have downloaded
  my $p = Parse::CPAN::Authors->new("01mailrc.txt.gz");
  # either a filename as above or pass in the contents of the file
  my $p = Parse::CPAN::Authors->new($mailrc_contents);

  my $author = $p->author('LBROCARD');
  # $a is a Parse::CPAN::Authors::Author object
  # ... objects are returned by Parse::CPAN::Authors
  print $author->email, "
";   # leon@astray.com
  print $author->name, "
";    # Leon Brocard
  print $author->pauseid, "
"; # LBROCARD

  # all the author objects
  my @authors = $p->authors;

DESCRIPTION ^

The Comprehensive Perl Archive Network (CPAN) is a very useful collection of Perl code. It has several indices of the files that it hosts, including a file named “01mailrc.txt.gz” in the “authors” directory. This file contains lots of useful information on CPAN authors and this module provides a simple interface to the data contained within.

Note that this module does not concern itself with downloading this file. You should do this yourself.

plz lemme know!
Parse-CPAN-Authors - what is this good for

As the description states, it’s for parsing index files from CPAN.

The Comprehensive Perl Archive Network (CPAN) is a very useful collection of Perl code. It has several indices of the files that it hosts, including a file named “01mailrc.txt.gz” in the “authors” directory. This file contains lots of useful information on CPAN authors and this module provides a simple interface to the data contained within.

So basically it’s a tool to help get information about CPAN contents.

Many thanks for the answer!

Well - that is great! I think i got you rigth: I can use CPAN_informations and get some informations out of CPAN.
This said i want to point out what in need - i want a kind of a parser that gives me iformation about

i want to get a list of all Perl-Modules and their Authors:!

Therefore i want to have a parser that not only parses sites as this

see this site here http://search.cpan.org/author/?W

and see this site here http://search.cpan.org/author/?A

No it has to go to the sub-pages and gets the information on Perl-Module and Creator …see the following;

and see this site here -

and see this site here -

and see this site here -

Note - i want to get a list of all the names of the cpan-Modules: and the module and author … of each Perl-Module.

Can i get all those data with the above mentioned module!?

love to hear from you

Regards

I’m sure you can, somehow. Let us know how you go. Have fun. :slight_smile:

hi i run into troubles while trying to install it on my opensuse 11.3 - now i will try it via YAST

probably YAST is the better way

cpan[4]> install Parse::CPAN::Authors
Running install for module ‘Parse::CPAN::Authors’
Running Build for L/LB/LBROCARD/Parse-CPAN-Authors-2.27.tar.gz
Has already been unwrapped into directory /root/.cpan/build/Parse-CPAN-Authors-2.27-l_HqaT
Has already been made
Running Build test
t/pod.t … skipped: Test::Pod 1.14 required for testing POD
t/pod_coverage.t … skipped: Test::Pod::Coverage 1.04 required for testing POD coverage
t/simple.t … 1/43 Insecure $ENV{PATH} while running with -T switch at /usr/lib/perl5/5.12.1/IO/Zlib.pm line 580.

Looks like you planned 43 tests but ran 1.

Looks like your test exited with 255 just after 1.

t/simple.t … Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 42/43 subtests

Test Summary Report

t/simple.t (Wstat: 65280 Tests: 1 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 43 tests but ran 1.
Files=3, Tests=1, 0 wallclock secs ( 0.06 usr 0.03 sys + 0.23 cusr 0.06 csys = 0.38 CPU)
Result: FAIL
Failed 1/3 test programs. 0/1 subtests failed.
LBROCARD/Parse-CPAN-Authors-2.27.tar.gz
./Build test – NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports LBROCARD/Parse-CPAN-Authors-2.27.tar.gz
Running Build install
make test had returned bad status, won’t install without force
Failed during this command:
LBROCARD/Parse-CPAN-Authors-2.27.tar.gz : make_test NO

cpan[5]>