Parse::CPAN::Modlist - Parse 03packages.data.gz



NAME

Parse::CPAN::Modlist - Parse 03packages.data.gz


SYNOPSIS

    use Parse::CPAN::Modlist;
    my $p = Parse::CPAN::Modlist->new("t/data/03modlist.data");
    foreach my $name ($p->modules) {
        my $module = $p->module($name);
        print " The module '".$module->name."'".
              " is written by ".$module->author.
              " and is described as '".$module->description.
              "'\n";
    }

=head1 DESCRIPTION

The CPAN module list is a non-comprehensive list of modules on CPAN.

Or, more exactly, it's a comprehensive list of registered modules on CPAN.

http://www.cpan.org/modules/00modlist.long.html has more details.


Methods

new <filename|data>

Creates a new Parse::CPAN::Modlist object and parses the data passed in.

You can either pass in the path to a (not gzipped) file or the data from an 03modlist.data file.

parse

Internal method which parses the 03modlist.data file.

Called automatically by new.

module <module name>

Returns a Parse::CPAN::Modlist::Module object representing the module name passed in or undef if that module is not in the module list.

modules

Returns a list of the names of all modules in the module list


BUGS

None that I know of.


COPYING

Distributed under the same terms as Perl itself.


AUTHOR

Copyright (c) 2004,

Simon Wistow <simon@thegestalt.org>

based on code from CPANPLUS by Jos Boumans.


SEE ALSO

the Parse::CPAN::Packages manpage, the Parse::CPAN::Authors manpage

 Parse::CPAN::Modlist - Parse 03packages.data.gz