Perlbeginner1 has asked for the wisdom of the Perl Monks concerning the following question:
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;
|
|---|
| 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 | |
|