小编dil*_*000的帖子

Parse :: CPAN ::作者的目的是什么?

Parse :: CPAN :: Authors模块的目的是什么?

  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;
Run Code Online (Sandbox Code Playgroud)

描述

Comprehensive Perl Archive …

perl parsing cpan

0
推荐指数
1
解决办法
176
查看次数

标签 统计

cpan ×1

parsing ×1

perl ×1