Acme::CPANAuthors::Utils::Authors - Acme::CPANAuthors::Utils::Authors documentation


Acme-CPANAuthors documentation  | view source Contained in the Acme-CPANAuthors distribution.

Index


NAME

Top

Acme::CPANAuthors::Utils::Authors

SYNOPSIS

Top

  use Acme::CPANAuthors::Utils::Authors;

  # you can't pass the raw content of 01mailrc.txt(.gz)
  my $authors = Acme::CPANAuthors::Utils::Authors->new(
    'cpan/authors/01mailrc.txt.gz'
  );

  my $author = $authors->author('Acme::CPANAuthors');

DESCRIPTION

Top

This is a subset of Parse::CPAN::Authors. The reading methods are similar in general (accessors are marked as read-only, though). Internals and data-parsing methods may be different, but you usually don't need to care.

METHODS

Top

new

always takes a file name (both raw .txt file and .txt.gz file name are acceptable). Raw content of the file is not acceptable.

author

takes a name of an author, and returns an object that represents it.

authors

returns a list of stored author objects.

author_count

returns the number of stored authors.

AUTHOR ACCESSORS

Top

pauseid, name, email

  my $author = $authors->author('ISHIGAKI');
  print $author->pauseid, "\n"; # ISHIGAKI
  print $author->name, "\n";    # Kenichi Ishigaki
  print $author->email, "\n";   # ishigaki@cpan.org

SEE ALSO

Top

Parse::CPAN::Authors

AUTHOR

Top

Kenichi Ishigaki, <ishigaki@cpan.org>

COPYRIGHT AND LICENSE

Top


Acme-CPANAuthors documentation  | view source Contained in the Acme-CPANAuthors distribution.