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

Hi folks

what does this do - what is it good for

http://search.cpan.org/~lbrocard/Parse-CPAN-Authors-2.27/lib/Parse/CPAN/Authors.pm

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, "\n"; # leon@astray.com print $author->name, "\n"; # Leon Brocard print $author->pauseid, "\n"; # 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.

what does this do - what is it good for? Shed me a ligth. i guess that this informs about the authors etc.

Replies are listed 'Best First'.
Re: Parse-CPAN-Authors::what does this do - what is it good for?
by Corion (Patriarch) on Oct 28, 2010 at 11:13 UTC

    The module tagline says it all: Parse 01mailrc.txt.gz . The file 01mailrc.txt.gz is the list of all CPAN authors and lives at the root of every CPAN mirror. That module provides a parser that turns this list into Perl data structures.

    A reply falls below the community's threshold of quality. You may see it by logging in.